[Python-Dev] Design question: call del only after successful init? (original) (raw)

Greg Stein gstein@lyra.org
Thu, 2 Mar 2000 09:14:35 -0800 (PST)


On Thu, 2 Mar 2000, Guido van Rossum wrote:

... But it is just as likely that calling del on a partially uninitialized object is a bad mistake, and I am doing all these cases a favor by not calling del when init failed!

Any opinions? If nobody speaks up, I'll make the change.

+1 on calling del IFF init completes successfully.

Cheers, -g

-- Greg Stein, http://www.lyra.org/