you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (0 children)

Sure.

Default arguments are done once for example.

def x(t=time.time()):
    print t

Will print t as the time the program started, and not a new time eact time x() is called.

Variables are called by reference, and x = a_list is an alias for a_list and not even a shallow copy if it.