Message205516
(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? |
|
Date |
User |
Action |
Args |
2013-12-08 05:13:37 | eric.snow | set | recipients:
+ eric.snow, brett.cannon, ncoghlan, larry |
2013-12-08 05:13:37 | eric.snow | set | messageid: <1386479617.91.0.98675544786.issue19927@psf.upfronthosting.co.za> |
2013-12-08 05:13:37 | eric.snow | link | issue19927 messages |
2013-12-08 05:13:37 | eric.snow | create | |
|