Should I change the name of __new__? (Re: [Pyrex] Inheritance for extension types)

Simon Burton simon at arrowtheory.com
Fri Feb 13 01:44:12 CET 2004


On Fri, 13 Feb 2004 13:21:56 +1300 (NZDT)
Greg Ewing <greg at cosc.canterbury.ac.nz> wrote:

...
> 
> I've been thinking about changing its name to something
> else, both to help avoid leading people into this sort
> of trap, and also to clear the way for possibly implementing
> a true Python-style __new__ for extension types at some
> time in the future.
> 
> However, this will break a large proportion of Pyrex code
> people have already written, so I may need to phase it in
> by allowing __new__ as a synonym for a while, with a warning
> that its semantics may change.
> 
> How do people feel about this?

Yes!

How about __make__ ?

Simon.

-- 
Simon Burton, B.Sc.
Licensed PO Box 8066
ANU Canberra 2601
Australia
Ph. 61 02 6249 6940
http://arrowtheory.com 




More information about the Pyrex mailing list