Dan <[EMAIL PROTECTED]> wrote:
> So, I think I understand what python's scoping is doing in the
> following situation:
> >>> x = [ lambda: ind for ind in range(10) ]
>
> But, I'm wondering what is the easiest (and/or most pythonic) way to
> get the behavior I want? (If you haven't guessed, I w
On Thu, 05 Jul 2007 19:14:07 +, Dan wrote:
> So, I think I understand what python's scoping is doing in the
> following situation:
x = [ lambda: ind for ind in range(10) ]
>
> […]
>
> But, I'm wondering what is the easiest (and/or most pythonic) way to
> get the behavior I want? (If you
So, I think I understand what python's scoping is doing in the
following situation:
>>> x = [ lambda: ind for ind in range(10) ]
>>> x
[ at 0x00BEC070>, at 0x00BEC7F0>,
at 0x00BECA70>, at 0x00C1EBF0>,
at 0x00C1EE30>, at 0x00C228F0>,
at 0x00C228B0>, at 0x00C28730>,
at 0x00C286F0>, at 0x00C2