*.c: Use Python `METH_NOARGS' methods where applicable.
authorMark Wooding <mdw@distorted.org.uk>
Sun, 20 Oct 2019 20:00:18 +0000 (21:00 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 11 Apr 2020 11:44:14 +0000 (12:44 +0100)
commit91e56f0647ff205643debd5cdb93797ea0e8da24
tree7ef984ec6e986855426e3af1ff9237923e3ccecf
parenta157093f4bbc3066fea2f77078b99489c76e62f8
*.c: Use Python `METH_NOARGS' methods where applicable.

Rather than rolling our own.  We need a little extra machinery to insert
the table entries, especially for the generic mapping support, but this
still saves 95 lines of code.

The `CONVERT_CAREFULLY' macro recently added will check that we haven't
messed things up too badly.
12 files changed:
algorithms.c
buffer.c
ec.c
field.c
group.c
key.c
mp.c
pubkey.c
pyke/mapping.c
pyke/pyke.h
rand.c
share.c