[perl-python] 20050112 while statement
Abigail
abigail at abigail.nl
Thu Jan 13 18:35:41 EST 2005
Xah Lee (xah at xahlee.org) wrote on MMMMCLIII September MCMXCIII in
<URL:news:1105611506.106440.135670 at f14g2000cwb.googlegroups.com>:
.. # here's a while statement in python.
..
.. a,b = 0,1
.. while b < 20:
.. print b
IndentationError: expected an indented block
.. a,b = b,a+b
You have already proven you don't know Perl, but now it turns
out, you don't know Python either.
Go away.
Abigail
--
package Z;use overload'""'=>sub{$b++?Hacker:Another};
sub TIESCALAR{bless\my$y=>Z}sub FETCH{$a++?Perl:Just}
$,=$";my$x=tie+my$y=>Z;print$y,$x,$y,$x,"\n";#Abigail
More information about the Python-list
mailing list