def __exit__(self, *args):
Thanks guys. This is the solution I implemented and it works great.
Mark :)
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
On 2011-12-10 20:22, Walter Prins wrote:
Is the example wrong, or is this something to do with how Windows
handles stdout that is causing this not to work as designed? I am
using Python 3.2 on Windows Vista Home Premium.
It seems the example may be wrong -- the __exit__ method, as stated
by th
Hi Mark,
On 10 December 2011 17:54, Mark Lybrand wrote:
>
> I am working on the Files chapter of Dive into Python 3, and have implemented
> the example script at the end of this message. The first input prints to the
> terminal as expected, the second value prints to the file as expected. The
I am working on the Files chapter of Dive into Python 3, and have
implemented the example script at the end of this message. The first input
prints to the terminal as expected, the second value prints to the file as
expected. Then the script tries to destroy in the class instance and bombs
with: