Indexing into char* behaves differently than CPython

Merged Bitbucket Importer requested to merge bitbucket/merged-pr-552 into branch/default

Created originally on Bitbucket by palecsandru (Alecsandru Patrascu)

Was already merged in Bitbucket before import, marked as merged by the import user

Source changeset not longer availableat the time of import. Commit listwill look empty

This PR is related to issue #2565 (closed). It seems that there must not be a string interpretation in case of a char array.

Using @arigo 's example from the issue we have:

Before:

#!bash
<_ctypes.pointer.LP_c_char_Array_10 object at 0x00007ffff7e0ed40>
''

Fixed:

#!bash
<_ctypes.pointer.LP_c_char_Array_10 object at 0x00007ffff7e0d210>
<_ctypes.array.c_char_Array_10 object at 0x00007ffff7e0d248>

Merge request reports