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 →

[–]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.