[Python-ideas] Faster PyArg_ParseTupleAndKeywords kwargs
dw+python-ideas at hmmz.org
dw+python-ideas at hmmz.org
Fri May 23 22:22:48 CEST 2014
On Fri, May 23, 2014 at 09:08:28PM +0100, Nathaniel Smith wrote:
> You should check out Argument Clinic (PEP 436) if you haven't seen it.
Thanks! I'd seen this but forgotten about it. The use of a preprocessor
seems excessive, and a potential PITA when combined with other
preprocessors - e.g. Qt's moc, but the language is a very cool idea.
If the DSL definition was expressed as a string constant, that pointer
could key an internal hash table. Still not as fast as specialized code,
but perhaps an interesting middleground.
David
More information about the Python-ideas
mailing list