Best Beginner's Guide To Python?

Nick Vargish nav+posts at bandersnatch.org
Fri Feb 6 13:09:05 EST 2004


"sean" <sean_berry at cox.net> writes:

> 2) No use of curly braces {} to group code.  This is by far my
> biggest problem with python.  I have, on more than one occasion,
> needed to put some code in a loop for testing purposes.  In java,
> c, perl, etc... you write your looping statement and throw a
> couple of braces around the code you want it to use.  In python,
> you write your looping statement... but then have to indent each
> line that will be looping.  After testing, all indents must then
> be deleted.

This is, of course, a feature of Python. 

Working with other peoples' C code, I've seen many examples where a
block of code was turned into a loop for "testing", and since it
worked better, the loop was never removed. Of course, the block never
gets indented. Hilarity ensues.

Nick

-- 
#  sigmask  ||  0.2  ||  20030107  ||  public domain  ||  feed this to a python
print reduce(lambda x,y:x+chr(ord(y)-1),' Ojdl!Wbshjti!=obwAcboefstobudi/psh?')



More information about the Python-list mailing list