How to write GUI and event separately in wxPython??

Steve Holden steve at holdenweb.com
Mon Jul 30 22:38:51 CEST 2007


star.public at gmail.com wrote:
> On Jul 30, 11:42 am, "Chris Mellon" <arka... at gmail.com> wrote:
> 
>>>> On Mon, 30 Jul 2007 06:32:55 -0400, Steve Holden wrote:
>>>>>  >>> [x for x in xrange(0, 101)] == [y for y in xrange(101)]
>>>>> True
> 
>> nitpick: list(xrange(42)) == list(xrange(42)) is slightly more concise
>> than the list comp..
> 
> Not that it has anything to do with this topic anymore, but I find the
> list comp a bit clearer for expressing the thought 'each element in
> one is the same as the coresponding element in the other, or: the
> sequences are identical' -- the list() version would proabably have
> had me going 'huh?' even longer ^_^.
> --
> [star for star in weaver]

Here's another one, a little more obscure still, but only valid in 2.5 
because of all():

 >>> all(x==y for (x, y) in zip(xrange(0, 101), xrange(101)))
True
 >>>

regards
  Steve
-- 
Steve Holden        +1 571 484 6266   +1 800 494 3119
Holden Web LLC/Ltd           http://www.holdenweb.com
Skype: holdenweb      http://del.icio.us/steve.holden
--------------- Asciimercial ------------------
Get on the web: Blog, lens and tag the Internet
Many services currently offer free registration
----------- Thank You for Reading -------------



More information about the Python-list mailing list