isinstance() bug

Skip Montanaro skip at
Wed Jan 28 17:07:21 CET 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>


More information about the Python-list mailing list