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 r.david.murray
Recipients Ramchandra Apte, eric.araujo, ericlammerts, r.david.murray
Date 2013-01-16.12:13:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1358338389.97.0.292712760089.issue16974@psf.upfronthosting.co.za>
In-reply-to
Content
Ideally there would be an unambiguous way to know if the object came from a file or some other source (say, __file__ is None and another special attribute gives the clue to the actual source), but that's not the way things work now, and for backward compatibility reasons I doubt that we can change it.  I'm sure there are programs that depend on at least '<string>', if not some of the other places where a similar thing is done.
History
Date User Action Args
2013-01-16 12:13:10r.david.murraysetrecipients: + r.david.murray, eric.araujo, Ramchandra Apte, ericlammerts
2013-01-16 12:13:09r.david.murraysetmessageid: <1358338389.97.0.292712760089.issue16974@psf.upfronthosting.co.za>
2013-01-16 12:13:09r.david.murraylinkissue16974 messages
2013-01-16 12:13:09r.david.murraycreate