My favorites | Sign in
Project Home Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 15: isinstance() fails in objectEntered check in Location.py
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  johnamag...@gmail.com
Closed:  Jan 2012


 
Project Member Reported by johnamag...@gmail.com, Jan 7, 2012
python doesn't load a module as a singleton - it can be reloaded as different module instances which screws the isinstance method.

It's not clear how I can ensure that I'm using the same module instance in this case, so for now, we'll implement a WorldObject method which returns a type as integer. Player will override it and return its own type identifier.

Eventually, I should look at this and see if it is possible to correct the root of the problem.
Jan 7, 2012
Project Member #1 johnamag...@gmail.com
This issue was closed by revision r11.
Status: Fixed

Powered by Google Project Hosting