Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #196411 > unrolled thread
| Started by | Cameron Simpson <cs@cskk.id.au> |
|---|---|
| First post | 2024-07-08 12:45 +1000 |
| Last post | 2024-07-08 12:45 +1000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Best use of "open" context manager Cameron Simpson <cs@cskk.id.au> - 2024-07-08 12:45 +1000
| From | Cameron Simpson <cs@cskk.id.au> |
|---|---|
| Date | 2024-07-08 12:45 +1000 |
| Subject | Re: Best use of "open" context manager |
| Message-ID | <mailman.19.1720406738.2981.python-list@python.org> |
On 07Jul2024 22:22, Rob Cliffe <rob.cliffe@btinternet.com> wrote: >it's legal, but doesn't work (trying to access the file after "with f" >raises the same > ValueError: I/O operation on closed file. Just to this: of course. The with closes the file. But my version runs the with after the try/except.
Back to top | Article view | comp.lang.python
csiph-web