Classes

Chris Angelico rosuav at gmail.com
Fri Oct 31 05:21:45 EDT 2014


On Fri, Oct 31, 2014 at 8:18 PM, ast <nomail at invalid.com> wrote:
>
> But this means that a method can create a new
> attribute not previously created with __init__.
> Is that correct ?

That's always the case. There's nothing special about __init__ for
creating attributes.

ChrisA



More information about the Python-list mailing list