Message68271
| Author |
lemburg |
| Recipients |
amaury.forgeotdarc, benjamin.peterson, georg.brandl, lemburg, pitrou, schuppenies |
| Date |
2008年06月16日.16:21:41 |
| SpamBayes Score |
0.055894796 |
| 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). |
|