From: Philip J. <pj...@gr...> - 2007-12-14 21:21:19
|
On Dec 14, 2007, at 4:21 AM, Daniel Menezes wrote: > In Python 2.5, the Libs ClientCookie and ClientForm work fine, but > in Jython don't work. This is one bug? > > Traceback (innermost last): > File "C:\projetos\workspace\jython\catalina\src\teste\teste.py", > line 10, in ? > File "C:\jython2.2.1-original\Lib\ClientCookie > \_urllib2_support.py", line 824, in urlopen > File "C:\jython2.2.1-original\Lib\ClientCookie\_Opener.py", line > 168, in open > File "C:\jython2.2.1-original\Lib\urllib2.py", line 325, in open > File "C:\jython2.2.1-original\Lib\urllib2.py", line 306, in > _call_chain > File "C:\jython2.2.1-original\Lib\ClientCookie > \_urllib2_support.py", line 717, in http_open > File "C:\jython2.2.1-original\Lib\ClientCookie > \_urllib2_support.py", line 708, in do_open > File "C:\jython2.2.1-original\Lib\socket.py", line 885, in __init__ > AttributeError: 'instance' object has no attribute 'reference_count' > Like Alan Kennedy pointed it in the other thread, the fact that ClientCookie uses socket._fileobject (an implementation detail) is really a bug on their part. You should log a bug with them about this. However, Jython should be able to handle this usage of _fileobject without too much trouble, so I've marked it as a bug on your new Jython ticket. -- Philip Jenvey |