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 astral451
Recipients astral451
Date 2007-12-15.05:49:28
SpamBayes Score 0.12994514
Marked as misclassified No
Message-id <1197697769.28.0.298338342184.issue1634@psf.upfronthosting.co.za>
In-reply-to
Content
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

from __future__ import with_statement


For new users this might frustrate.
History
Date User Action Args
2007-12-15 05:49:29astral451setspambayes_score: 0.129945 -> 0.12994514
recipients: + astral451
2007-12-15 05:49:29astral451setspambayes_score: 0.129945 -> 0.129945
messageid: <1197697769.28.0.298338342184.issue1634@psf.upfronthosting.co.za>
2007-12-15 05:49:29astral451linkissue1634 messages
2007-12-15 05:49:28astral451create