Damn you're right. I had a short process for removing duplicates from
a dict that used a variable named set. Everything's perfect now.
Thanks for the quick answer to a silly question.

-dougal

On Nov 1, 10:14 pm, Anand <[EMAIL PROTECTED]> wrote:
> > <type 'exceptions.UnboundLocalError'> at /new/file
> > local variable 'set' referenced before assignment
>
> > The code is as follows:
>
> > def POST(self, edit_id=False, action='post', new_type=''):
> >    x = set()
>
> > Pretty straightforward, and they work everywhere else, but why not
> > here?
>
> There must be an assignment to some where else in the code. Python is
> thinking that set is a local variable.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to