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:35 | rcoyner | set | recipients: + rcoyner, amaury.forgeotdarc, benjamin.peterson, joe.amenta |
| 2010年03月07日 21:24:34 | rcoyner | set | messageid: <1267997074.93.0.37789531215.issue7162@psf.upfronthosting.co.za> |
| 2010年03月07日 21:24:33 | rcoyner | link | issue7162 messages |
| 2010年03月07日 21:24:32 | rcoyner | create | |