Mark Dickinson <[email protected]> added the comment:
> How would it work? We would have to add various unions to the
> PyUnicode_Object definition?
No, you'd just need a temporary union defined in unicodeobject.c that would
look something like:
typedef union { unsigned long v; char s[SIZEOF_LONG]; } U;
(with better choices of names). Python/dtoa.c does a similar thing to read /
write the pieces of a C double using integers safely.
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue15144>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com