This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author r3m0t
Recipients docs@python, r3m0t
Date 2012-12-11.16:16:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1355242591.45.0.999993608815.issue16663@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2012-12-11 16:16:31r3m0tsetrecipients: + r3m0t, docs@python
2012-12-11 16:16:31r3m0tsetmessageid: <1355242591.45.0.999993608815.issue16663@psf.upfronthosting.co.za>
2012-12-11 16:16:31r3m0tlinkissue16663 messages
2012-12-11 16:16:30r3m0tcreate