Message177341
http://docs.python.org/3.3/c-api/structures.html#METH_KEYWORDS
"Methods with these flags must be of type PyCFunctionWithKeywords. The function expects three parameters: self, args, and a dictionary of all the keyword arguments. The flag is typically combined with METH_VARARGS, and the parameters are typically processed using PyArg_ParseTupleAndKeywords()."
The documentation doesn't mention the args/dictionary arguments will be NULL when there are no positional/keyword arguments. It might also be worth mentioning the arguments are in effect "borrowed" references. |
|
Date |
User |
Action |
Args |
2012-12-11 16:16:31 | r3m0t | set | recipients:
+ r3m0t, docs@python |
2012-12-11 16:16:31 | r3m0t | set | messageid: <1355242591.45.0.999993608815.issue16663@psf.upfronthosting.co.za> |
2012-12-11 16:16:31 | r3m0t | link | issue16663 messages |
2012-12-11 16:16:30 | r3m0t | create | |
|