Proposal: default __init__
Aahz Maruch
aahz at panix.com
Mon Nov 13 10:23:41 EST 2000
In article <8uotmc$uo4$1 at slb7.atl.mindspring.net>,
Andrew Dalke <dalke at acm.org> wrote:
>
> I propose that objects in some Python 2.x or in 3K have a default
>__init__. As it is now, base classes must explicitly include an
>__init__ to be future-proof, which is not obvious.
I want to highlight and reiterate one of Steve Holden's points: while
Python does not have any restrictions on argument types passed to
methods (and functions), Python does definitely restrict the number of
items in the parameter list for a method (modulo specific mechanisms for
creating variable-length parameter lists). Following the "explicit is
better than implicit" rule, you are therefore required to create the
signature of any method/function that you wish to call.
--
--- Aahz (Copyright 2000 by aahz at pobox.com)
Androgynous poly kinky vanilla queer het <*> http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6
Shadows 2000: when you're tired of "Cthulhu for President" --Aahz
More information about the Python-list
mailing list