Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #21954 > unrolled thread
| Started by | Dennis Lee Bieber <wlfraed@ix.netcom.com> |
|---|---|
| First post | 2012-03-20 17:16 -0400 |
| Last post | 2012-03-20 17:16 -0400 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: List comprehension/genexp inconsistency. Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-03-20 17:16 -0400
| From | Dennis Lee Bieber <wlfraed@ix.netcom.com> |
|---|---|
| Date | 2012-03-20 17:16 -0400 |
| Subject | Re: List comprehension/genexp inconsistency. |
| Message-ID | <mailman.846.1332278407.3037.python-list@python.org> |
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 top | Article view | comp.lang.python
csiph-web