[Python-ideas] Simple class initialization

dag.odenhall at gmail.com dag.odenhall at gmail.com
Sat Apr 16 14:48:18 CEST 2011


On 16 April 2011 14:14, Adam Matan <adam at matan.name> wrote:
> I think that this solution damages the __init__() signature because the
> caller does
> not know which arguments should be passed. Furthermore, it is quite long,
> and does
> not allow introspection.

That's why we have the class attributes, and document init as taking
kwargs that set the attributes.



More information about the Python-ideas mailing list