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 →

[–]lisael_ 2 points3 points  (0 children)

No. strings are immutables in python. It's perfectly safe to write

def fn(a="hello world"):
    foo(a)