variable hell

Steve Holden steve at holdenweb.com
Tue Aug 30 13:35:44 EDT 2005


Fredrik Lundh wrote:
> Steve Holden wrote:
> 
> 
>>Yes. A large part of learning a language is discovering the many idioms
>>that have already been established for doing certain things. These are a
>>kind of shorthand, established by long convention, that allow one to
>>avoid the "learning-by-use" curve.
> 
> 
> it's not obvious that the OP has found the pydiomatic way to solve
> his problem, though, given that most of this thread have been spent
> on playing with exec, and that Robert Kern's question from the be-
> ginning of this thread has still not been answered:
> 
>     "Again, why unpack them into separate variables when they are *already*
>     in the form that you want to use them?"
> 
Fair enough. I was trying to advocate the use of the suggested idioms, 
but some people seem to insist on going their own way even when it leads 
to a collision wiht a bricj wall.

You can lead an idiot to idioms, but you can't make him think ;-)

regards
  Steve
-- 
Steve Holden       +44 150 684 7255  +1 800 494 3119
Holden Web LLC             http://www.holdenweb.com/




More information about the Python-list mailing list