[pypy-issue] [issue1367] ctypes: c_bool argtype only takes bool type

Christoph Reiter tracker at bugs.pypy.org
Mon Jan 14 15:26:53 CET 2013


New submission from Christoph Reiter <reiter.christoph at gmail.com>:

Raises ArgumentError in PyPy but works in CPython.

import ctypes

lib = ctypes.CDLL("libc.so.6")
func = lib.abs
func.argtypes = [ctypes.c_bool]

func([])

----------
messages: 5162
nosy: lazka, pypy-issue
priority: bug
status: unread
title: ctypes: c_bool argtype only takes bool type

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1367>
________________________________________


More information about the pypy-issue mailing list