> I actually need to convert it to mpz_t, which is best done via text > in a C string in a base which is a power of 2. Since PyUnicode_Format > for Python3 int creates a byte string first, it's quite silly to let > a byte string be converted to a Unicode string and then back.
You could use _PyLong_AsByteArray. Regards, Martin _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com