Message90698
Actually, the Python Tutorial recommends the use of the 'with' statement
in Section 7.2.1. "Methods of File Objects":
> It is good practice to use the with keyword when dealing with file
> objects. [etc.]
But the example and description are at the very bottom of this very
large section, and are easily missed by new Python users.
If this suggestion is to be taken seriously, I suggest putting this
information at a more prominent place, somewhere at the top of the short
section 7.2. "Reading and Writing Files". |
|
Date |
User |
Action |
Args |
2009-07-19 01:19:29 | jjalocha | set | recipients:
+ jjalocha, georg.brandl |
2009-07-19 01:19:29 | jjalocha | set | messageid: <1247966369.75.0.40232300258.issue6519@psf.upfronthosting.co.za> |
2009-07-19 01:19:28 | jjalocha | link | issue6519 messages |
2009-07-19 01:19:28 | jjalocha | create | |
|