"Phil Mayers" <p.mayers at ic.ac.uk> writes: > Any ideas? You could try _PyLong_FromByteArray. It is not official API, but it may still work. Regards, Martin