homepage

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 brett.cannon
Recipients brett.cannon, ncoghlan, theller
Date 2013年02月01日.13:44:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1359726277.47.0.865712090918.issue17099@psf.upfronthosting.co.za>
In-reply-to
Content
If __loader__ is None then ValueError is raised, but if it is not defined then AttributeError is raised instead. Probably should harmonize around ValueError even in the missing attribute case since __loader__ = None is equivalent to the attribute not existing.
I'm on the fence about considering this a bug, though, since the docs say if __loader__ == None then ValueError but does not directly mention what happens if the attribute is missing. Since anyone who has written code for this probably is catching both attributes (if at all since all but three modules coming from Python will have __loader__ defined ATM), it should be fine, but it is still a change in API/semantics that doesn't contradict the docs.
History
Date User Action Args
2013年02月01日 13:44:37brett.cannonsetrecipients: + brett.cannon, theller, ncoghlan
2013年02月01日 13:44:37brett.cannonsetmessageid: <1359726277.47.0.865712090918.issue17099@psf.upfronthosting.co.za>
2013年02月01日 13:44:37brett.cannonlinkissue17099 messages
2013年02月01日 13:44:36brett.cannoncreate

AltStyle によって変換されたページ (->オリジナル) /