Incorrect scope of list comprehension variables

D'Arcy J.M. Cain darcy at druid.net
Sun Apr 4 09:43:51 EDT 2010


On Sun, 04 Apr 2010 15:06:46 +0200
"Alf P. Steinbach" <alfps at start.no> wrote:
> Common sense is applied first, as a heuristic. You really wouldn't want to drill 
> down into the architect's drawings in order to get office 215 in a building. 
> First you apply common sense.

Oh goodie, bad analogies.  Can I play too?

Getting to office 215 is not analogous to writing a program.  It is
analogous to using the program.  Writing the program is like building
the office tower.  You need to know about the tools and materials that
you are working with.  You don't use "common sense" to decide what
materials to use.  You study the literature and the specs.

-- 
D'Arcy J.M. Cain <darcy at druid.net>         |  Democracy is three wolves
http://www.druid.net/darcy/                |  and a sheep voting on
+1 416 425 1212     (DoD#0082)    (eNTP)   |  what's for dinner.



More information about the Python-list mailing list