Code design for a sub-class of built-ins
Steven D'Aprano
steve at REMOVETHIScyber.com.au
Wed Jul 5 02:01:18 EDT 2006
On Tue, 04 Jul 2006 18:25:14 +0000, Dennis Lee Bieber wrote:
> I suspect what you really want (I'm not going to open an interpreter
> to test) is:
>
> def __init__(self, value, extra=None):
> int.__init__(self, value)
Yes, that's exactly what I meant -- it was a copy-and-paste and I didn't
clean it up correctly.
Thanks,
--
Steven.
More information about the Python-list
mailing list