__init__ is the initialiser

Ethan Furman ethan at stoneleaf.us
Mon Feb 3 06:34:41 CET 2014


On 02/02/2014 09:12 PM, Roy Smith wrote:
> In article <mailman.6325.1391403799.18130.python-list at python.org>,
>   Dave Angel <davea at davea.name> wrote:
>
>>   Skip Montanaro <skip at pobox.com> Wrote in message:
>>> On Sun, Feb 2, 2014 at 9:14 PM, Dave Angel <davea at davea.name> wrote:
>>>> And when the q-bits get entangled up,  we won't know the question
>>>> till after the answer has collapsed.
>>>
>>> Won't looking at the answer change it?
>>>
>>
>> No, looking at it is what collapses it. Before that it was just
>>   another Schroedinger's cat
>
> So, what you're saying is when I delete an object, __del__() has both
> been called and not been called?

That would certainly explain the problems with __del__!

--
~Ethan~



More information about the Python-list mailing list