From: brian z. <bz...@zi...> - 2002-01-18 20:57:11
|
Tom, Unfortunately in Jython 2.1 none of the socket method calls throw exceptions as documented. The underlying Java exception is thrown, not the tuple as httplib expects. Another problem is the lack of an errno module. I am actively working on this in the hopes of getting Jython 2.2 compliant. I, like you, want this to work in Jython properly. In the interim I don't know of a solution. thanks, brian > -----Original Message----- > From: jyt...@li... > [mailto:jyt...@li...] On Behalf > Of Russo, Tom > Sent: Friday, January 18, 2002 2:46 PM > To: 'jyt...@li...' > Subject: [Jython-users] IOError differences > > > http://www.jython.org/docs/differences.html says: > "Jython uses different values for the IOError argument. This > causes trouble > for people who unpack the value into an (errno, message) tuple." > > Is there any more documentation on these differences? I'm getting an > attribute error for __getitem__ in httplib.py: > > except socket.error, v: > # trap 'Broken pipe' if we're allowed to > automatically reconnect > if v[0] != 32 or not self.auto_open: > # <--- the > error happens here (at v[0]) > raise > > and I'd like to correct it. > > thanks > _t > > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users > |