[Python-ideas] Hooks into the IO system to intercept raw file reads/writes (original) (raw)

Paul Moore p.f.moore at gmail.com
Tue Feb 10 14:56:04 CET 2015


On 10 February 2015 at 13:42, Victor Stinner <victor.stinner at gmail.com> wrote:

Maybe I should repeat the information somewhere else in the documentation?

Not many of the code samples seem to include loop.close(). Maybe they should? For example, if I have a loop.run_forever() call, should it be enclosed in try: ... finally: loop.close() to ensure the loop is closed? Typically, I rely on doing what the examples do for this sort of detail, even if the detailed documentation is present somewhere.

Paul



More information about the Python-ideas mailing list