For review: PEP 308 - If-then-else expression

Carel Fellinger carel.fellinger at chello.nl
Sat Feb 8 13:58:50 EST 2003


On Sat, Feb 08, 2003 at 12:28:12AM -0500, Dan Schmidt wrote:
> Carel Fellinger <carel.fellinger at chello.nl> writes:
...
> | Reminded by examples in other postings in this thread I realize that
> | 
> |                  kind = ["julian", "gregorian"][self.reform == None or
> |                                                 date < self.reform)]
> | 
> | even looks better:)
> 
> It may look better, but it means the opposite.

yep, saw it after posting.  Just shows, like I've said, it really
takes me more brainpower to parse that construct:), I really prefer
a true conditional expression.

-- 
groetjes, carel





More information about the Python-list mailing list