isinstance() bug

Skip Montanaro skip at pobox.com
Wed Jan 28 11:07:21 EST 2004


    >> You imported the module twice (look at sys.modules) so you have two
    >> different A classes.

    Michal>  i think that if absolute path was somehow put into the classes
    Michal>  internal information this inconsistency would be put away.

Perhaps.  Try it and see.  Patches are welcome... ;-)
 
    Michal>  and as to the sys.modules thing: this could be considered as
    Michal>  just two references to the same module (again its absolute path
    Michal>  would be taken into account), not two different modules.

    Michal>  does it make sense?

Yup.  Patches are welcome. <wink>

Skip




More information about the Python-list mailing list