Message164809
> 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. |
|
Date |
User |
Action |
Args |
2012-07-07 10:24:48 | mark.dickinson | set | recipients:
+ mark.dickinson, pitrou, serhiy.storchaka |
2012-07-07 10:24:48 | mark.dickinson | set | messageid: <1341656688.86.0.355372302578.issue15144@psf.upfronthosting.co.za> |
2012-07-07 10:24:48 | mark.dickinson | link | issue15144 messages |
2012-07-07 10:24:48 | mark.dickinson | create | |
|