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 lemburg
Recipients amaury.forgeotdarc, benjamin.peterson, georg.brandl, lemburg, pitrou, schuppenies
Date 2008-06-16.16:21:41
SpamBayes Score 0.0558948
Marked as misclassified No
Message-id <48569313.1090200@egenix.com>
In-reply-to <1213386894.12.0.553810252503.issue3098@psf.upfronthosting.co.za>
Content
On 2008-06-13 21:54, Marc-Andre Lemburg wrote:
> BTW: Here's another trick you can use:
> 
> print 'sizeof(Py_UNICODE) =', len(u'\0'.encode('unicode-internal'))
> 
> (for Py2.x)

... and for Py3.x:

print(len(u'\0'.encode('unicode-internal')))

There's really no need to drop to C to get at sizeof(Py_UNICODE).
History
Date User Action Args
2008-06-16 16:21:43lemburgsetspambayes_score: 0.0558948 -> 0.0558948
recipients: + lemburg, georg.brandl, amaury.forgeotdarc, pitrou, benjamin.peterson, schuppenies
2008-06-16 16:21:42lemburglinkissue3098 messages
2008-06-16 16:21:41lemburgcreate