DEV Community

Discussion on: How to Use C Functions in Python

 
erikwhiting88 profile image
Erik

interesting. perhaps ints in C are represented differently in memory than in Python. maybe the best way is to parse the int into a char array and send it to Python as a string?

Thread Thread
 
benh42 profile image
Ben Hartley

That does sound promising because I imagine it could scale almost indefinitely if its not bound by the long or long long limits