On 01Feb2014 10:05, Ben Finney <ben+pyt...@benfinney.id.au> wrote:
> Ned Batchelder <n...@nedbatchelder.com> writes:
> > Why can't we call __init__ the constructor and __new__ the allocator?
> 
> Because those terms already have meanings, and “__new__” fits the
> meaning of “constructor” better.

+1 on not giving new conflicting meanings to terms already well
defined in practice.

Better just to make in clear in the __init__ docs that there is a
separate construction step.
-- 
Cameron Simpson <c...@zip.com.au>

On two occasions I have been asked [by members of Parliament],
'Pray, Mr. Babbage, if you put into the machine wrong figures, will
the right answers come out?'  I am not able rightly to apprehend the
kind of confusion of ideas that could provoke such a question.
        - Babbage
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to