trent nelson ktctpxaonresolvecom windows x64 sizeofsize_t sizeoflong existing pylong_fromssize_t pylong_fromsize_t implementations longobjectc plain wrong ive patched follows im well versed many intricacies longobjectc id appreciate input others far tell use fromlong fromlonglong unsigned counterparts exclusively dont see wed need rely _pylong_frombytearray incoming ival never going larger ssize_tsize_t _pylong_frombytearray intended incoming numbers dont know size front right index longobjectc longobjectc revision 62292 longobjectc working copy 109913 109913 pyobject pylong_fromssize_tpy_ssize_t ival py_ssize_t bytes ival int one 1 ival pylong_base return pylong_fromlongival return _pylong_frombytearray unsigned char bytes sizeof_size_t is_little_endian 1 sizeof_size_t sizeof_long_long return pylong_fromlonglongival elif sizeof_size_t sizeof_long return pylong_fromlongival else error expected sizeof_size_t equal sizeof_long_long sizeof_long endif create new long int object c size_t 111313 111313 pyobject pylong_fromsize_tsize_t ival size_t bytes ival int one 1 ival pylong_base return pylong_fromlongival return _pylong_frombytearray unsigned char bytes sizeof_size_t is_little_endian 0 sizeof_size_t sizeof_long_long return pylong_fromunsignedlonglongival elif sizeof_size_t sizeof_long return pylong_fromunsignedlongival else error expected sizeof_size_t equal sizeof_long_long sizeof_long endif get c py_long_long int long int object _______________________________________________ python3000 mailing list smsbmo9552pythonorg httpmailpythonorgmailmanlistinfopython3000 unsubscribe httpmailpythonorgmailmanoptionspython3000python300040tangomucom thu 07 aug 2008 072517 0700 python3000 longobjectc windows x64