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 belopolsky
Recipients
Date 2007-04-20.20:42:02
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
theller: [_objects] will not be set if the instance is modified by a foreign function call, so this is not robust.

I thought about this before making my suggestion.  I believe people will be less surprized if objects returned from an ffi call print with funny numbers than getting c_char_p(NNNNN) after entering c_char_p("abc"). 

A few comments on the patch:

1. Since c_void_p is printed in decimal, shouldn't c_char_p be treated the same? If hexadecimal is prefered, maybe c_void_p should be changed.

2. Currently c_char_p(0) is printed as c_char_p(None), but the patch will change that to c_char_p(0).
History
Date User Action Args
2007-08-23 14:53:10adminlinkissue1701409 messages
2007-08-23 14:53:10admincreate