Message114417
"""
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)". |
|
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 | |
|