BPO | [32041](https://bugs.python.org/issue32041) --- | :--- Nosy | @Kentzo *Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.* Show more details GitHub fields: ```python assignee = None closed_at = None created_at = labels = ['ctypes', 'type-bug'] title = "Cannot cast '\\0' to c_void_p" updated_at = user = 'https://github.com/Kentzo' ``` bugs.python.org fields: ```python activity = actor = 'Ilya.Kulakov' assignee = 'none' closed = False closed_date = None closer = None components = ['ctypes'] creation = creator = 'Ilya.Kulakov' dependencies = [] files = [] hgrepos = [] issue_num = 32041 keywords = [] message_count = 3.0 messages = ['306307', '306323', '306325'] nosy_count = 1.0 nosy_names = ['Ilya.Kulakov'] pr_nums = [] priority = 'normal' resolution = None stage = None status = 'open' superseder = None type = 'behavior' url = 'https://bugs.python.org/issue32041' versions = ['Python 3.6'] ```
Activity
Kentzo commentedon Nov 15, 2017
Happens on 3.6.3 only:
Kentzo commentedon Nov 16, 2017
That's the change that introduced the bug: #2285
Kentzo commentedon Nov 16, 2017
I have fixed that problem by ensuring that ctypes-facing code passes bytes, not strings.
ZeroIntensity commentedon Jul 18, 2026
I can no longer reproduce this in 3.14.