PEP 308: some candidate uses cases from live code

Delaney, Timothy C (Timothy) tdelaney at avaya.com
Tue Feb 11 00:36:10 EST 2003


> From: Tony Lownds [mailto:tony-clpy at lownds.com]
> 
> Can you imagine explaining why this is good syntax:
> 
> if x: print y
> else: print z
> 
> And this isn't:
> 
> if x: print x else: print y

Nope. I will of course explain why *both* are bad style.

Tim Delaney





More information about the Python-list mailing list