[Python-Dev] '*' instead of 'yield'? (original) (raw)

Ken Manheimer klm@zope.com
Mon, 6 Aug 2001 18:04:00 -0400 (EDT)


Roman, that was a sensible way to end this particular thread - forgive me for gratuitously extending it a tiny bit, but i just can't resist...

On Mon, 6 Aug 2001, Roman Suzi wrote:

[...] Or, yes, and next step is to use '?' in place of 'print' ;-)

from future import parrot # must allow for such things: = myfun(x, y, z): ? "how are you?" S = 0 4 i <- x..y,z: S += i ** S = mygen(x): 4 k <- 1..x: * k ? myfun(1, 3, 5) ? mygen(20)

I don't feel this is an, um, balanced example if you leave alone the only non-expression in python that is signalled soley by punctuation, so:

from future import parrot

comment must allow for such things: endcomment

= myfun(x, y, z): ? "how are you?" S = 0 4 i <- x..y,z: S += i ** S ...

:)

and-voluntary-block-delimeter-close-would-be-"comment end endcomment"'ly y'rs,

Ken Manheimer klm@digicool.com