From: SourceForge.net <no...@so...> - 2007-05-20 20:24:01
|
Bugs item #1722306, was opened at 2007-05-20 16:24 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112867&aid=1722306&group_id=12867 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Library Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: additv (additv) Assigned to: Nobody/Anonymous (nobody) Summary: OverflowError in UDP Socket Implementation Initial Comment: When using UDP sockets in Jython, calling sendto (socket.py:356) will raise "OverflowError: value too large for byte" The problematic line is 361: bytes = jarray.array(map(ord, data), 'b') This seems to be due to a difference between the results of a call to "ord" and the java defintion of a byte. Ord returns values between 0 and 255, while a java byte is a value between -128 and 127. Thus if a character has an ascii code > 127 this error occurs. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112867&aid=1722306&group_id=12867 |