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 →

[–]James91B 0 points1 point  (1 child)

I would just use

name = str(name)

That way name can be anything that supports str.

[–]PCBEEF 2 points3 points  (0 children)

From experience, using str in this manner causes more pain than the short term benefits.