[GRASS-dev] [GRASS GIS] #2748: ctype.POINTER function overloading prevents automatic byref() conversion
GRASS GIS
trac at osgeo.org
Mon Sep 21 01:57:56 PDT 2015
#2748: ctype.POINTER function overloading prevents automatic byref() conversion
----------------------------+-------------------------
Reporter: artegion | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone:
Component: Python ctypes | Version: 7.0.1
Resolution: | Keywords:
CPU: Unspecified | Platform: Unspecified
----------------------------+-------------------------
Comment (by artegion):
Not a real problem, just a bit disappointing: python ctypes documentation
describes an interesting feature but our code presents a different
behavior (it is far more pythonic do not care about byreference/byvalue if
ctypes can do the dirty work).
The odd thing is that happens unnoticed: while ctypes raises exceptions
passing wrong argument type in this case only function return code (or
segmentation fault exception) reveals troubles.
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2748#comment:3>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list