File "/usr/local/lib/python3.0/cgi.py", line 477, in __init__
self.read_urlencoded()
File "/usr/local/lib/python3.0/cgi.py", line 577, in read_urlencoded
self.strict_parsing):
File "/usr/local/lib/python3.0/urllib/parse.py", line 377, in parse_qsl
pairs = [s2 for s1 in qs.split('&') for s2 in s1.split(';')]
TypeError: Type str doesn't support the buffer API
任何人都可以指导我如何避免这种情况?我通过将数据提供给cgi.Fieldstorage
来获得它,我似乎无法以其他方式进行操作。Python 3.0 urllib.parse错误“类型str不支持缓冲区API”
是的。到目前为止,我已经注意到cgi,urllib和wsgiref的巨大问题。我希望他们尽快得到解决。 :( – 2009-02-12 17:09:57
事实上,在WEB-SIG中的动力似乎已经停止,没有人似乎想要拥有这个问题,非常令人失望 – bobince 2009-02-12 18:24:01