PEP 308: an additional "select/case" survey option

Clark C. Evans cce at clarkevans.com
Thu Mar 6 05:18:00 CET 2003


On Thu, Mar 06, 2003 at 02:49:14AM +0000, Stephen Horne wrote:
| I'd personally keep your div, but replace the rest with...
| 
|   temp = ((a,b), (c,d), (g,h))
|   reduce (operator.add, [div(x,y) for x,y in temp])

Thanks.  I just learned more Python.  ;)

Clark





More information about the Python-list mailing list