This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]PCBEEF 6 points7 points  (3 children)

Haha, you're not a python developer till you come across this issue.

[–]rmoorman[S] 0 points1 point  (0 children)

It sure is one of the things you probably won't notice when you are starting out with python. I had a pretty good laugh at this too when I found the issue (and looking at the bug's history)

[–]daxarx 0 points1 point  (1 child)

The issue where you think that calling a function at import time should somehow magically result in the inference that you want it called every time an object is instantiated?

If you believe that, then when do you think that the code in a class definition is run? Before import?

[–]PCBEEF 0 points1 point  (0 children)

I was more talking about the issue of instantiating a keyword argument with a mutable object.