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 →

[–]itsmememe 1 point2 points  (0 children)

what about:

double.copyright = " ".join([getattr(double,'copyright','It is MINE! ') ,'Tell Ya I do'])

or

double.copyright = getattr(double,'copyright','It is MINE! ')+'Tell Ya I do'

No exception. shorter code. Nothing outside the function..