Python style questions

Michael Hudson mwh21 at cam.ac.uk
Mon Mar 19 14:43:55 EST 2001


cobrien at Radix.Net (Cary O'Brien) writes:

> 2. One thing I've done is to define classes used only by another class
>    inside that class.  For example, if a class A needs to keep track of a
>    bunch of "things", then the class definition for the "things" is inside
>    of the class definition of A.  This is
> 
>    a. SOP
>    b. Brilliant
>    c. Idiotic

The scoping can get a bit counter-intuitive
> 3. I really miss not having a "switch" or "case" statement.  Sniff.

-- 
3. Syntactic sugar causes cancer of the semicolon.
  -- Alan Perlis, http://www.cs.yale.edu/homes/perlis-alan/quotes.html



More information about the Python-list mailing list