The Artima Developer Community
Sponsored Link

Python Buzz Forum
Problems with nested scopes and lazy evaluation

0 replies on 1 page.

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 threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Jeremy Hylton

Posts: 193
Nickname: jhylton
Registered: Jun, 2003

Jeremy Hylton is a core Python developer.
Problems with nested scopes and lazy evaluation Posted: Feb 3, 2004 11:31 PM
Reply to this message Reply

This post originated from an RSS feed registered with Python Buzz by Jeremy Hylton.
Original Post: Problems with nested scopes and lazy evaluation
Feed Title: Jeremy Hylton's Web Log
Feed URL: https://www.python.org/~jeremy/weblog/rss.xml
Feed Description: A techie web log mostly about Python
Latest Python Buzz Posts
Latest Python Buzz Posts by Jeremy Hylton
Latest Posts From Jeremy Hylton's Web Log

Advertisement

It's a strain to combine the new generator expressions feature and nested scopes. The standard scoping rules are inconvenient for the lazy evaluation of generator expressions, but it's very strange for a list comprehension and an apparently identical generator expression to produce different results.

Read: Problems with nested scopes and lazy evaluation

Topic: A Decimal Data Type - PEP 327 Previous Topic   Next Topic Topic: My RSS does not validate

Sponsored Links



Google
  Web Artima.com   

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