How to write GUI and event separately in wxPython??

Steve Holden steve at holdenweb.com
Mon Jul 30 11:53:42 EDT 2007


Chris Mellon wrote:
> On 7/30/07, Steve Holden <steve at holdenweb.com> wrote:
>> Marc 'BlackJack' Rintsch 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
>>> First I thought: Why the unnecessary list comprehension but to my surprise:
>>>
>>> In [33]: xrange(42) == xrange(42)
>>> Out[33]: False
>>>
>>> That's strange.
>>>
>> Not so strange really. The two xrange objects are different (though I
>> confess I haven't looked to see how they implement comparisons), but
>> iterating over them produces the same result.
> 
> 
> nitpick: list(xrange(42)) == list(xrange(42)) is slightly more concise
> than the list comp..

Indeed. I wonder if anyone will pick a nit with the nit you picked on my 
nitpick ...

nitty-gritti-ly y'rs  - 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