1. Python CFFI
  2. Untitled project
  3. cffi

Source

cffi / demo / gmp.py

Diff from to

File demo/gmp.py

 lib.mpz_add(a, a, b)			# a=a+b
 
 s = lib.mpz_get_str(ffi.NULL, 10, a)
-print str(s)
+print ffi.string(s)