64-bit ints <-> PyLongs?

Kalle Svensson kalle at gnupung.net
Thu Oct 26 10:02:13 EDT 2000


Hi.

I'm writing a wrapper around a C library where some functions return, or
expect as arguments, 64-bit ints. Will PyLong_*LongLong work on
win32 (and preferably Mac too), and is LONG_LONG guaranteed to be at least
64 bits?

If not, any suggestions on how to convert between 64-bit ints and PyLongs
at least semi-portably (gcc and win32)?

TIA,
  Kalle
-- 
Email: kalle at gnupung.net     | You can tune a filesystem, but you
Web: http://www.gnupung.net/ | can't tune a fish. -- man tunefs(8)
Not signed due to logistical difficulties (I'm not at home).
If you doubt the authenticity of this message, please tell me.




More information about the Python-list mailing list