PyBindGen does not support several the C native arithmetic types

Bug #962054 reported by Johan Råde
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
PyBindGen
New
Undecided
Unassigned

Bug Description

PyBindGen 0.15.0 does not support several the C native arithmetic types; see the test script below.
The commented out lines in the script correspond to types that are not supported.
Not all these are high priority, but for us the lack of support for 'long' is a show stopper.
'signed char' and 'unsigned char' should also be useful.
The others are just alternative names for other types.

Thank you,
Johan Råde

---------------------------------------- test script ---------------------------------------------------------------------

import pybindgen
retval = pybindgen.retval

Test = pybindgen.Module('Test')

# The rows that are commented out cause errors with PyBindGen 0.15.0 and Python 2.7

Test.add_function('f', retval('char'), [])
#Test.add_function('f', retval('signed char'), [])
#Test.add_function('f', retval('unsigned char'), [])
Test.add_function('f', retval('short'), [])
Test.add_function('f', retval('short int'), [])
#Test.add_function('f', retval('signed short'), [])
#Test.add_function('f', retval('signed short int'), [])
Test.add_function('f', retval('unsigned short'), [])
Test.add_function('f', retval('unsigned short int'), [])
Test.add_function('f', retval('int'), [])
#Test.add_function('f', retval('signed int'), [])
Test.add_function('f', retval('unsigned int'), [])
#Test.add_function('f', retval('long'), [])
#Test.add_function('f', retval('long int'), [])
#Test.add_function('f', retval('signed long'), [])
#Test.add_function('f', retval('signed long int'), [])
Test.add_function('f', retval('unsigned long'), [])
#Test.add_function('f', retval('unsigned long int'), [])
Test.add_function('f', retval('long long'), [])
#Test.add_function('f', retval('long long int'), [])
#Test.add_function('f', retval('signed long long'), [])
#Test.add_function('f', retval('signed long long int'), [])
Test.add_function('f', retval('unsigned long long'), [])
#Test.add_function('f', retval('unsigned long long int'), [])

Gustavo Carneiro (gjc)
summary: - PyBindGen does not support 'long'
+ PyBindGen does not support several the C native arithmetic types
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.