[Pyrex] Subclassing - design question
Greg Ewing
greg.ewing at canterbury.ac.nz
Thu Mar 9 00:34:39 CET 2006
Helmut Jarausch wrote:
> Please note anywhere in the docs, that
> the __new__ method of a class which
> should be subclassable should have
> only a single required parameter and
> a placeholder for additional ones.
I do mention under "Special Methods of Extension Types/
Initialisation methods: __new__ and __init__" that
this is recommended for Python subclassability. I
could perhaps extend that to subclassability in
general, since it applies equally well to Pyrex
subclassing.
--
Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury, | Carpe post meridiam! |
Christchurch, New Zealand | (I'm not a morning person.) |
greg.ewing at canterbury.ac.nz +--------------------------------------+
More information about the Pyrex
mailing list