*.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>
Mon, 25 Nov 2019 17:43:08 +0000 (17:43 +0000)
commit7a75bb76cdc042870f5df7e6945bc0f376daf6ce
treeadb3253c50c7a842540f6519f237551306cbd569
parentb16009b07a50a62a03e7a7c781e9d777ba4450ad
*.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