-static PyMethodDef methods[] = {
-#define METHNAME(func) meth_##func
- KWMETH(_MP_fromstring, "fromstring(STR, [radix = 0]) -> (X, REST)\n"
- " Parse STR as a large integer, according to RADIX. If RADIX is\n"
- " zero, read a prefix from STR to decide radix: allow `0b' for binary,\n"
- " `0' or `0o' for octal, `0x' for hex, or `R_' for other radix R.")
- KWMETH(_GF_fromstring, "fromstring(STR, [radix = 0]) -> (X, REST)\n"
- " Parse STR as a binary polynomial, according to RADIX. If RADIX is\n"
- " zero, read a prefix from STR to decide radix: allow `0b' for binary,\n"
- " `0' or `0o' for octal, `0x' for hex, or `R_' for other radix R.")
- METH (_MP_factorial, "factorial(I) -> I!: compute factorial")
- METH (_MP_fibonacci, "fibonacci(I) -> F(I): compute Fibonacci number")
- METH (_MP_loadl, "loadl(STR) -> X: read little-endian bytes")
- METH (_MP_loadb, "loadb(STR) -> X: read big-endian bytes")
- METH (_MP_loadl2c, "loadl2c(STR) -> X: "
- "read little-endian bytes, two's complement")
- METH (_MP_loadb2c, "loadb2c(STR) -> X: "
- "read big-endian bytes, two's complement")
- METH (_MP_frombuf, "frombuf(STR) -> (X, REST): read buffer format")
- METH (_GF_loadl, "loadl(STR) -> X: read little-endian bytes")
- METH (_GF_loadb, "loadb(STR) -> X: read big-endian bytes")
- METH (_GF_frombuf, "frombuf(STR) -> (X, REST): read buffer format")
-#undef METHNAME
- { 0 }
-};
-