This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eric.snow
Recipients brett.cannon, eric.snow, larry, ncoghlan
Date 2013-12-08.05:13:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1386479617.91.0.98675544786.issue19927@psf.upfronthosting.co.za>
In-reply-to
Content
(my browser farted the half finished report into existence :P )

The __eq__() implementation of the path-based loaders in importlib is just the stock one that compares object identity.  So two that are effectively the same compare unequal.  This has a material impact on ModuleSpec.  ModuleSpec.__eq__() does a comparision of its various attributes, one of them being the loader.  Thus most specs will compare unequal even though they are effectively equal.

I recommend that we provide a better implementation for SourceFileLoader and friends.

Larry: would such a feature addition be okay?
History
Date User Action Args
2013-12-08 05:13:37eric.snowsetrecipients: + eric.snow, brett.cannon, ncoghlan, larry
2013-12-08 05:13:37eric.snowsetmessageid: <1386479617.91.0.98675544786.issue19927@psf.upfronthosting.co.za>
2013-12-08 05:13:37eric.snowlinkissue19927 messages
2013-12-08 05:13:37eric.snowcreate