(Reposting this to list -- pushed wrong reply button!)

Koos Zevenhoven wrote:
|defsingle(i): try: ||v =i.next() |||exceptStopIteration:||||raiseException('No values')|||try: ||i.next() ||exceptStopIteration: ||returnv||else: ||raiseException('Too many values')|||printsingle(name forname in('bob','fred')ifname=='bob')||| |
Looks like a clever method of whitespace compression to me. Those narrow vertical bars take up far less room that spaces!

--
Greg

_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to