This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mark.dickinson
Recipients mark.dickinson, pitrou, serhiy.storchaka
Date 2012-07-07.10:24:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1341656688.86.0.355372302578.issue15144@psf.upfronthosting.co.za>
In-reply-to
Content
> 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.
History
Date User Action Args
2012-07-07 10:24:48mark.dickinsonsetrecipients: + mark.dickinson, pitrou, serhiy.storchaka
2012-07-07 10:24:48mark.dickinsonsetmessageid: <1341656688.86.0.355372302578.issue15144@psf.upfronthosting.co.za>
2012-07-07 10:24:48mark.dickinsonlinkissue15144 messages
2012-07-07 10:24:48mark.dickinsoncreate