Skip to content

Instantly share code, notes, and snippets.

@ironpythonbot
Created December 9, 2014 18:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ironpythonbot/151d6ff7c1efd57bd617 to your computer and use it in GitHub Desktop.
Save ironpythonbot/151d6ff7c1efd57bd617 to your computer and use it in GitHub Desktop.
CodePlex Issue #32657 Plain Text Attachments
Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from ctypes import *
>>> message = c_buffer(20)
>>> print message
<ctypes.c_char_Array_20 object at 0x01880120>
>>> byref(message)
<cparam 'P' (013AEAE8)>
>>>
IronPython 2.7.1 (2.7.0.40) on .NET 4.0.30319.261
Type "help", "copyright", "credits" or "license" for more information.
>>> from ctypes import *
>>> message = c_buffer(20)
>>> print message
<c_char_Array_20 object at 0x000000000000002B>
>>> byref(message)
<cparam 'P' (43)>
>>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment