All those methods with network=None, masklen=None, packed=None signature are improperly handled via C-ext.
While parsing args/kwargs with PyArg_ParseTupleAndKeywords() declaring arg/kwarg's signature with s leads to fill the value with Py_None object while the arg was explicitly passed as None from python. This could be eliminated declaring an arg/kwarg with z - that leads a NULL value in C code instead of Py_None
All those methods with
network=None, masklen=None, packed=None
signature are improperly handled via C-ext.While parsing args/kwargs with
PyArg_ParseTupleAndKeywords()
declaring arg/kwarg's signature withs
leads to fill the value withPy_None
object while the arg was explicitly passed asNone
from python. This could be eliminated declaring an arg/kwarg withz
- that leads aNULL
value in C code instead ofPy_None
I've prepared a PR https://github.com/mjschultz/py-radix/pull/31