A = X > Y ? X : Y
Fredrik Lundh
effbot at telia.com
Thu Feb 10 03:09:22 EST 2000
More information about the Python-list mailing list
Thu Feb 10 03:09:22 EST 2000
- Previous message (by thread): I give up... was: A = X > Y ? X : Y
- Next message (by thread): A = X > Y ? X : Y
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Bob Alexander <bobalex at home.com> wrote: > The only true equivalent to this C/C++/Java/<name your c-like syntax > language code in Python is: > > if X > Y: > temp = Y > else: > temp = X > A = temp > > This evaluates only one of its selected expressions, and evaluates A only > once. you're using quantum python, right? </F>
- Previous message (by thread): I give up... was: A = X > Y ? X : Y
- Next message (by thread): A = X > Y ? X : Y
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list