list comprehensions
Dave Benjamin
ramen at lackingtalent.com
Mon Apr 12 18:35:16 EDT 2004
In article <c56n0j$9r8$1 at panix1.panix.com>, Aahz wrote:
> In article <yjZcc.42823$Pk3.9547 at pd7tw1no>,
> Elaine Jackson <elainejackson7355 at home.com> wrote:
>>
>>List comprehensions don't work the way you intuitively expect them
>>to work. I realize many people have no intuitions about how list
>>comprehensions 'should' work, so if you recognize yourself in this
>>description, feel free to go back to whatever you were doing before. If
>>you're still here, though, I invite you to consider the following
>>definition:
>
> Short response: don't write complex listcomps.
Would you consider a 2D loop too complex for a listcomp?
--
.:[ dave benjamin: ramen/[sp00] -:- spoomusic.com -:- ramenfest.com ]:.
: please talk to your son or daughter about parametric polymorphism. :
More information about the Python-list
mailing list