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 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:37brian.curtinsetrecipients: + brian.curtin
2010-08-20 01:59:37brian.curtinsetmessageid: <1282269577.88.0.849452359327.issue9648@psf.upfronthosting.co.za>
2010-08-20 01:59:35brian.curtinlinkissue9648 messages
2010-08-20 01:59:34brian.curtincreate