I'm just wondering, is there a Python idiom to check if a string is empty, and then print a default if it's is?
(The context is Django, for the __unicode__(self)
function for UserProfile - basically, I want to print the first name and last name, if it exists, and then the username if they don't both exist).
Cheers, Victor