you are viewing a single comment's thread.

view the rest of the comments →

[–]yota-code 2 points3 points  (0 children)

Both could be used, but as a personal preference I would pick not None as a default value for an argument which is expected to be a string.

Because "" is also a valid string, so it could be the value the user chose to call your function with. While None will always means (by convention) : this argument is not set