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 fooofei
Recipients fooofei
Date 2017-06-12.08:56:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1497257804.29.0.586474122887.issue30634@psf.upfronthosting.co.za>
In-reply-to
Content
module:ctypes
pyversion: 2.7.13
python platform : win32, linux_x86_x64

I use ctypes.cast(v,ctypes.c_void_p).value to get address of 'helloworld' and u'helloworld' internal buffer address.

the result is both right in win32,but not in linux.

'helloworld'  is right, u'helloworld' is invalid.

please see 
https://github.com/fooofei/py_string_address
https://github.com/fooofei/py_string_address/blob/master/issue.py
History
Date User Action Args
2017-06-12 08:56:44fooofeisetrecipients: + fooofei
2017-06-12 08:56:44fooofeisetmessageid: <1497257804.29.0.586474122887.issue30634@psf.upfronthosting.co.za>
2017-06-12 08:56:44fooofeilinkissue30634 messages
2017-06-12 08:56:43fooofeicreate