python3: 'where' keyword
Paul Rubin
http
Sat Jan 8 18:59:50 EST 2005
"Carl Banks" <invalidemail at aerojockey.com> writes:
> You misunderstand. There "where" is not part of the expression but the
> statement. The above example would be a modified print statement, a
> print...where statement, if you will. Under this suggestion, there
> would be modified versions of various simple statements.
You mean I can't say
# compute sqrt(2) + sqrt(3)
x = (sqrt(a) where:
a = 2.) \
+ sqrt (a) where:
a = 3.
Hmmm.
More information about the Python-list
mailing list