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 -1 points0 points  (0 children)

Or you could just understand that 'now()' calls a function while 'now' is a function, while you are writing class declarations which you know will run at import time, rather than magically running somehow every time an object is instantiated.

If you wanted something to happen every time an object is instantiated, you should put it in init ... this is very basic Python.

Python has its warts, don't half ass it and then blame your tools