Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #21954
| From | Dennis Lee Bieber <wlfraed@ix.netcom.com> |
|---|---|
| Subject | Re: List comprehension/genexp inconsistency. |
| Date | 2012-03-20 17:16 -0400 |
| Organization | > Bestiaria Support Staff < |
| References | <1332275002.10958.7.camel@jcdyer-laptop> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.846.1332278407.3037.python-list@python.org> (permalink) |
On Tue, 20 Mar 2012 16:23:22 -0400, "J. Cliff Dyer"
<jcd@sdf.lonestar.org> declaimed the following in
gmane.comp.python.general:
>
> When trying to create a class with a dual-loop generator expression in a
> class definition, there is a strange scoping issue where the inner
> variable is not found, (but the outer loop variable is found), while a
> list comprehension has no problem finding both variables.
>
Read http://www.python.org/dev/peps/pep-0289/ -- in particular, look
for the word "leak"
--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: List comprehension/genexp inconsistency. Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-03-20 17:16 -0400
csiph-web