Marc-Andre Lemburg <[EMAIL PROTECTED]> added the comment: 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). _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3098> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com