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 rcoyner
Recipients amaury.forgeotdarc, benjamin.peterson, joe.amenta, rcoyner
Date 2010-03-07.21:24:32
SpamBayes Score 0.009497801
Marked as misclassified No
Message-id <1267997074.93.0.37789531215.issue7162@psf.upfronthosting.co.za>
In-reply-to
Content
I thought the whole point was that file[1] was removed in 3.0[2]? Or, are you saying that if somebody overloaded file with def file(...)? If that is the case would it be reasonable to check like this?

>>> file in list(__builtins__.__dict__.values())
True
>>> def file():
...     pass
... 
>>> file in list(__builtins__.__dict__.values())
False
>>> 


[1] - http://docs.python.org/library/functions.html?highlight=file#file
[2] - http://docs.python.org/3.1/whatsnew/3.0.html#builtins
History
Date User Action Args
2010-03-07 21:24:35rcoynersetrecipients: + rcoyner, amaury.forgeotdarc, benjamin.peterson, joe.amenta
2010-03-07 21:24:34rcoynersetmessageid: <1267997074.93.0.37789531215.issue7162@psf.upfronthosting.co.za>
2010-03-07 21:24:33rcoynerlinkissue7162 messages
2010-03-07 21:24:32rcoynercreate