Answer the question
In order to leave comments, you need to log in
CtypesPython. How to use arithmetic operations?
For example, here is the code:
from ctypes import c_longlong as ll
k = ll(10**17-1)
k-=1
This code doesn't workfrom ctypes import c_longlong as ll
k = ll(10**17-1)
k-=ll(1)
Answer the question
In order to leave comments, you need to log in
Python
12/18/2013
The subtleties of using the Python language: Part 6. Ways of integrating Python and C / C ++ applications
12/18/2013:
The subtleties of using the Python language: Part 7. Features of interaction with C ++. distutils package, Boost.Python library, Cython project
12/20/2013:
The subtleties of using the Python language: Part 8. Features of interaction with C ++. SWIG project and reverse integration of Python into C/C++ applications
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question