Gabriel Rossetti wrote:
Dave Angel wrote:
Gabriel Rossetti wrote:
Hello
everyone,
I get this error on python 2.6.1 on mac os x 10.6 :
UnboundLocalError: local variable '_[1]' referenced before assignment
here's the code that raises this:
params = [ self.__formatData(param
Gabriel Rossetti wrote:
Gabriel Rossetti wrote:
I get this error on python 2.6.1 on mac os x 10.6 :
UnboundLocalError: local variable '_[1]' referenced before assignment
here's the code that raises this:
params = [ self.__formatData(paramProcFunc, query, p) for p in params
Richard Thomas writes:
> That isn't an error that should occur, not least because _[1] isn't a
> valid name. Can you post a full traceback?
The name _[n] is used internally when compiling list comprehensions.
The name is chosen precisely because it is not an (otherwise) valid
identifier. For ex
Dave Angel wrote:
Gabriel Rossetti wrote:
Hello
everyone,
I get this error on python 2.6.1 on mac os x 10.6 :
UnboundLocalError: local variable '_[1]' referenced before assignment
here's the code that raises this:
params = [ self.__formatData(paramProcFunc, query, p)
Richard Thomas a écrit :
On Dec 9, 10:17 am, Gabriel Rossetti
wrote:
UnboundLocalError: local variable '_[1]' referenced before assignment
That isn't an error that should occur, not least because _[1] isn't a
valid name
It's an internal identifier used in l
Gabriel Rossetti wrote:
Hello
everyone,
I get this error on python 2.6.1 on mac os x 10.6 :
UnboundLocalError: local variable '_[1]' referenced before assignment
here's the code that raises this:
params = [ self.__formatData(paramProcFunc, query, p) for p in params ]
what
On Dec 9, 10:17 am, Gabriel Rossetti
wrote:
> Hello everyone,
>
> I get this error on python 2.6.1 on mac os x 10.6 :
>
> UnboundLocalError: local variable '_[1]' referenced before assignment
>
> here's the code that raises this:
>
> params = [ self.__fo
Hello everyone,
I get this error on python 2.6.1 on mac os x 10.6 :
UnboundLocalError: local variable '_[1]' referenced before assignment
here's the code that raises this:
params = [ self.__formatData(paramProcFunc, query, p) for p in params ]
what I don't get is that i