The Artima Developer Community
Sponsored Link

Python Buzz Forum
New generator proposal

0 replies.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a flat view of this topic  Flat View
Previous Topic   Next Topic
Threaded View: This topic has 0 replies on 1 page
Hans Nowak

Posts: 1114
Nickname: roodbaard
Registered: Jun, 2003

Hans Nowak is a Dutch Python addict who currently resides in Florida.
New generator proposal Posted: Oct 23, 2003 10:16 PM
Reply to this message Reply

This post originated from an RSS feed registered with Python Buzz by Hans Nowak.
Original Post: New generator proposal
Feed Title: Efectos Especiales
Feed URL: http://www.zephyrfalcon.org/weblog2/rss.xml
Feed Description: Ramblings, rants, musings, ideas and observations. Topics include (but are not limited to): programming (especially Python), books, games (especially CCGs and board games), astrology, design, writing, painting, etc.
Latest Python Buzz Posts
Latest Python Buzz Posts by Hans Nowak
Latest Posts From Efectos Especiales

PEP 289 has seen a revival. It was announced on c.l.py today: In brief, the PEP proposes a list comprehension style syntax for creating fast, memory efficient generator expressions on the fly:   sum(x*x for x in roots) min(d.temperature()*9/5 + 32 for d in days) Set(word.lower() for word in text.split() if len(word) dict( (k, somefunc(k)) for k in keylist ) dotproduct = sum(x*y for x,y in itertools.izip(xvec, yvec)) bestplayer, bestscore = max( (p.score, p.name) for p in players )   Each of the above runs without creating a full list in memory, which saves allocation time, conserves resources, and exploits cache locality. ... [418 words]

Read: New generator proposal


Topic: More XPath love Previous Topic   Next Topic Topic: Berkeley DB XML License

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use