You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee='https://github.com/birkenfeld'closed_at=<Date2007-12-15.09:37:41.997>created_at=<Date2007-12-15.05:49:29.209>labels= ['build', 'docs']
title='with Statement SyntaxError generated while following Tutorial'updated_at=<Date2007-12-15.09:37:41.974>user='https://bugs.python.org/astral451'
In Python Tutorial -- Section 8.7 "Predefined Clean-up Action"
When following the "with open..." commands explicitly Python 2.5 will
generate a Syntax Error;
"There's an error in you program: invalid syntax"
It would be nice if a foot note existed that took you to Python
Reference Manual -- section 7.5 "The with statement"
In that section it explains that in Python 2.5 you need to use
astral451mannequin
changed the title
with Statement Error generated following Tutorial
with Statement SyntaxError generated while following Tutorial
Dec 15, 2007
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: