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 daniel.wagner-hall
Recipients daniel.wagner-hall, pitrou, r.david.murray
Date 2012-09-04.23:57:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1346803052.68.0.0938995143861.issue15864@psf.upfronthosting.co.za>
In-reply-to
Content
That is indeed the behaviour I'm talking about.

In particular I came across this where two libraries imported an exception type using different sys.path traversals, which both led to the same file, and a try-catch didn't catch the exception because it had a different type (even though it had been defined by the same file).  This was a pretty horrible bug to track down.

That said, messing with sys.path is pretty ugly, so I can see why this would be intentional, but it still feels like the the types of the same class, defined by the same file, should be equal.
History
Date User Action Args
2012-09-04 23:57:36daniel.wagner-hallsetrecipients: + daniel.wagner-hall, pitrou, r.david.murray
2012-09-04 23:57:32daniel.wagner-hallsetmessageid: <1346803052.68.0.0938995143861.issue15864@psf.upfronthosting.co.za>
2012-09-04 23:57:32daniel.wagner-halllinkissue15864 messages
2012-09-04 23:57:31daniel.wagner-hallcreate