Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #33187

Re: A gnarly little python loop

From Peter Otten <__peter__@web.de>
Subject Re: A gnarly little python loop
Date 2012-11-12 16:49 +0100
Organization None
References <roy-9EBEAD.17581410112012@news.panix.com> <a61c52b7-eb49-45a5-a4b4-8e4c6b4acaf1@v9g2000pbi.googlegroups.com> <bf637b4d-c257-48af-bb3f-b5438f341c67@nl3g2000pbc.googlegroups.com>
Newsgroups comp.lang.python
Message-ID <mailman.3588.1352735375.27098.python-list@python.org> (permalink)

Show all headers | View raw


rusi wrote:

> The fidgetiness is entirely due to python not allowing C-style loops
> like these:
> >>> while ((c=getchar()!= EOF) { ... }

for c in iter(getchar, EOF):
    ...

> Clearly the fidgetiness is there as before and now with extra coroutine
> plumbing

Hmm, very funny...

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

A gnarly little python loop Roy Smith <roy@panix.com> - 2012-11-10 17:58 -0500
  Re: A gnarly little python loop Ian Kelly <ian.g.kelly@gmail.com> - 2012-11-10 16:17 -0700
  Re: A gnarly little python loop Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-11-11 00:23 +0000
  Re: A gnarly little python loop Steve Howell <showell@domaintools.com> - 2012-11-10 19:03 -0800
    Re: A gnarly little python loop Stefan Behnel <stefan_ml@behnel.de> - 2012-11-11 08:56 +0100
  Re: A gnarly little python loop rusi <rustompmody@gmail.com> - 2012-11-11 23:09 -0800
    Re: A gnarly little python loop rusi <rustompmody@gmail.com> - 2012-11-12 07:21 -0800
      Re: A gnarly little python loop Peter Otten <__peter__@web.de> - 2012-11-12 16:49 +0100
      Re: A gnarly little python loop Steve Howell <showell30@yahoo.com> - 2012-11-12 08:09 -0800
        Re: A gnarly little python loop rusi <rustompmody@gmail.com> - 2012-11-12 20:14 -0800

csiph-web