PEP for an unrestricted __init__ ?!
Jimmy Retzlaff
jimmy at retzlaff.com
Thu Apr 18 16:59:19 EDT 2002
> holger krekel [mailto:pyth at devel.trillke.net] writes:
> I'd would like to know if anybody thinks it's
> worthwile to start a formal PEP
...
> to bring full factory-pattern power to the __init__
> constructor of a class.
I believe that's exactly what __new__ is for in new-style classes. See
PEP 285 for an example of __new__ usage for exactly this purpose (in the
Specification section).
Jimmy
More information about the Python-list
mailing list