Python, urlencode attributes


/ Published in: Python
Save to your folder(s)

Hello,
I am just new to Python, I have failed to resolve this Windows (Python Idle). The doc's point to this format, but I continually get the following error:
urlencode missing attribute
Traceback (most recent call last):
File "C:\Documents and Settings\My Documents\Python-dir\TEST-P1.py", line 15, in
data = headers + urllib.urlencode(body)
AttributeError: 'module' object has no attribute 'urlencode'

Checked for modules with the same name and Cygwin does not generate this error.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.