No macros in Python

Erno Kuusela erno-news at erno.iki.fi
Wed Dec 18 13:49:11 EST 2002


In article <mailman.1040072065.14055.python-list at python.org>, Lulu of
the Lotus-Eaters <mertz at gnosis.cx> writes:

| The normal way of closing a
| file in Python is letting reference count fall to zero.

actually it can cause silent data loss when you are writing to a file since
the output is buffered. when writing, always use explicit f.close().

  -- erno



More information about the Python-list mailing list