Jim Jewett wrote: > How do you feel about the __del__ in stdlib subprocess.Popen (about line 615)? > > This resurrects itself, in order to finish waiting for the child > process.
I don't see a need for resurrection here. Why can't it create another object holding the necessary info for doing the waiting? > (And note that if it needed to revive (not recreate, revive) > subobjects, it would need the full immortal-cycle power of today's > __del__. Any subobjects which may need to be preserved can be passed as arguments to the finalizer, which can then prevent them from dying in the first place if it wants. I'm far from convinced that there's ever a *need* for resurrection. -- Greg _______________________________________________ Python-3000 mailing list [email protected] http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com
