tag:blogger.com,1999:blog-11683713.post112312201015597422..comments2024-01-12T21:16:50.520-08:00Comments on Spyced: Python at the .NET user groupJonathan Ellishttp://www.blogger.com/profile/11003648392946638242noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-11683713.post-1123229962153174972005-08-05T01:19:00.000-07:002005-08-05T01:19:00.000-07:00Nice presentation.----------------------Automating...Nice presentation.<BR/><BR/>----------------------<BR/><A HREF="http://www.win32com.de" REL="nofollow">Automating applications with Python</A>Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-11683713.post-1123175697872912922005-08-04T10:14:00.000-07:002005-08-04T10:14:00.000-07:00those are generator expressions, introduced in 2.4...those are generator expressions, introduced in 2.4.<BR/><BR/>(there's actually a bug there; I was trying to be clever and didn't test it. You'd need to add L = list(L) at the top of qsort for it to work with the gen exps; better would be to stick with list comprehensions. alas.)Jonathan Ellishttps://www.blogger.com/profile/11003648392946638242noreply@blogger.comtag:blogger.com,1999:blog-11683713.post-1123175012577453932005-08-04T10:03:00.000-07:002005-08-04T10:03:00.000-07:00Nice presentation. Here's a question about the qui...Nice presentation. Here's a question about the quick sort example:<BR/><BR/>What is the name of the idiom for this construction?<BR/><BR/>(lt for lt in l[1:] if lt < l[0])<BR/><BR/>That doesn't seem to work in python 2.3.5. (Am I mistaken?)Anonymousnoreply@blogger.com