Also, just to clarify. In the trackback to:
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-
packages/web/request.py in handle
53. meth = "GET"
54. if not hasattr(cls, meth):
55. return nomethod(cls)
56. tocall = getattr(cls(), meth)
57. args = list(result.groups())
58. for d in re.findall(r'\\(\d+)', ofn):
59. args.pop(int(d) - 1)
60. return tocall(*([x and urllib.unquote(x) for x in args] + fna))
It does show up in mod{} along with everything else...
On Nov 1, 10:10 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> I've run into an odd problem. I've been using sets, and they've been
> working fine except that suddenly in one of my POST classes, they
> crash the script with the following error:
>
> <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?
>
> If you have any ideas, I would be ecstatic to hear them!
>
> -Dougal
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---