➜

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.

作者 rcoyner
收信人 amaury.forgeotdarc, benjamin.peterson, joe.amenta, rcoyner
日期 2010-03-07.21:24:32
SpamBayes Score 0.009497801
Marked as misclassified 否
Message-id <1267997074.93.0.37789531215.issue7162@psf.upfronthosting.co.za>
In-reply-to
内容
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
历史
日期 用户 动作 参数
2010-03-07 21:24:35rcoyner修改recipients: + rcoyner, amaury.forgeotdarc, benjamin.peterson, joe.amenta
2010-03-07 21:24:34rcoyner修改messageid: <1267997074.93.0.37789531215.issue7162@psf.upfronthosting.co.za>
2010-03-07 21:24:33rcoyner链接issue7162 messages
2010-03-07 21:24:32rcoyner创建