[IPython-User] Parallel IPython -- too many open files

Fernando Perez fperez.net@gmail....
Sun Jan 8 13:13:32 CST 2012


Hey Min,

On Sat, Jan 7, 2012 at 11:27 PM, Erik Petigura <eptune@gmail.com> wrote:
> I think this is the issue.  I added
>
>   rc.close()
>
> and the code ran to completion.

perhaps we should add a __del__ method to the clients that calls
close?  While python destructors aren't guaranteed to be called at
shutdown and therefore should not be used to do things like remove
external files, they do get called on object destruction in normal
execution.  Since the rc in Erik's case would be destroyed at function
exit b/c it goes out of scope, then having __del__ would have helped
here.

Do you see any reason not to?

f


More information about the IPython-User mailing list