[Python-Dev] Possible bug in class-init, lookin for mentors
Justus Schwabedal
jschwabedal at gmail.com
Fri Apr 21 05:47:24 EDT 2017
Hi everyone,
I possibly found a bug in class __init__ and would like to fix it. So I'm
looking for a mentor to help me.
`class Foo:
def __init__(self, bar=[]):
self.list = bar
spam_1 = Foo()
spam_2 = Foo()
spam_1.list.append(42)
print(spam_2.list)`
At least I think it's a bug. Maybe it's a feature..
Best Regards, Jus
--
Justus Schwabedal
Handy (D): +49 177 939 5281
email: jschwabedal at googlemail.com
skype: justus1802
Görlitzer Str. 22
01099 Dresden, Sachsen
Germany
Steinkreuzstr. 23
53757 Sankt Augustin, NRW
Germany
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20170421/0b008886/attachment.html>
More information about the Python-Dev
mailing list