New to Python - block grouping (spaces)
Marko Rauhamaa
marko at pacujo.net
Sat Apr 18 02:53:33 EDT 2015
Michael Torrie <torriem at gmail.com>:
> There was a version of Python (compatible at a bytecode level) that did
> implement braces for blocks. It was called pythonb, but it is now
> defunct, understandably for lack of interest.
<URL: http://www.perl.com/pub/2001/04/01/parrot.htm>
LW: Sure. I'd probably write the program something like this:
while(@line = Sys::Stdin->readline()):
continue_next if $line[0] =eq= "#":
print @line;
}
Marko
More information about the Python-list
mailing list