Pythoncal, anyone? (My (late) beef with Simple Generator syntax (PEP 255))
Piet van Oostrum
piet at cs.uu.nl
Mon Nov 18 13:29:24 EST 2002
More information about the Python-list mailing list
Mon Nov 18 13:29:24 EST 2002
- Previous message (by thread): Pythoncal, anyone? (My (late) beef with Simple Generator syn tax (PEP 255))
- Next message (by thread): Pythoncal, anyone? (My (late) beef with Simple Generator syn tax (PEP 255))
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
>>>>> Greg Ewing <see_reply_address at something.invalid> (GE) writes: GE> I have an idea: Suppose there were a "don't" GE> statement that could be put in front of another GE> statement to, effectively, comment it out, GE> e.g. GE> def foo(): GE> # This function does nothing GE> don't print "Hello" GE> Then an empty generator could be written GE> def g(): GE> don't yield None def emptyGen(): if 0: yield None -- Piet van Oostrum <piet at cs.uu.nl> URL: http://www.cs.uu.nl/~piet [PGP] Private email: P.van.Oostrum at hccnet.nl
- Previous message (by thread): Pythoncal, anyone? (My (late) beef with Simple Generator syn tax (PEP 255))
- Next message (by thread): Pythoncal, anyone? (My (late) beef with Simple Generator syn tax (PEP 255))
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list