Re: [perl-python] 20050112 while statement

From: Abigail (abigail_at_abigail.nl)
Date: 01/14/05


Date: 13 Jan 2005 23:35:41 GMT

Xah Lee (xah@xahlee.org) wrote on MMMMCLIII September MCMXCIII in
<URL:news:1105611506.106440.135670@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


Relevant Pages

  • Re: [perl-python] 20050112 while statement
    ... Xah Lee wrote on MMMMCLIII September MCMXCIII in ... IndentationError: expected an indented block ... you don't know Python either. ...
    (comp.lang.perl.misc)
  • Re: A decorator syntax not yet mentioned (I think!)
    ... > FWIW, I don't object to the keyword, I object to the indented block. ... > agree that newbies will need to look either up. ... Python that it's deemed that it needs to *look* radically different from ... Yes, this is personal preference, but it seems that it's a preference ...
    (comp.lang.python)
  • Re: The use of :
    ... > What is the meaning and the usage of: in Python? ... It means something else follows in an indented block as part of the same ...
    (comp.lang.python)
  • Re: Concatenation: $i.$j different from "$i$j"
    ... Dr.Ruud wrote on VCXXXIV September MCMXCIII in ... %% Occidental schreef: ... If you had written 'Perl6' instead of 'Python', ...
    (comp.lang.perl.misc)