Message114417
| Author |
brian.curtin |
| Recipients |
brian.curtin |
| Date |
2010年08月20日.01:59:34 |
| SpamBayes Score |
0.00030802935 |
| Marked as misclassified |
No |
| Message-id |
<1282269577.88.0.849452359327.issue9648@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
"""
with file("sample.py", "r") as f:
pass
"""
The above code comes out of 2to3 with no modifications suggested. "file" is gone in 3.x and could be substituted with "open" usage in most cases. We would also have to handle or otherwise notify the user about code like "isinstance(x, file)". |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2010年08月20日 01:59:37 | brian.curtin | set | recipients:
+ brian.curtin |
| 2010年08月20日 01:59:37 | brian.curtin | set | messageid: <1282269577.88.0.849452359327.issue9648@psf.upfronthosting.co.za> |
| 2010年08月20日 01:59:35 | brian.curtin | link | issue9648 messages |
| 2010年08月20日 01:59:34 | brian.curtin | create |
|