On Mon, Jun 4, 2012 at 11:19 PM, Steven D'Aprano
<steve+comp.lang.pyt...@pearwood.info> wrote:
> How do I programmatically get the argument spec of built-in types'
> __init__ or __new__ methods?

I don't think that you can. Methods implemented in C don't really even
have established argument specs.  They just take tuples and dicts and
use the PyArg_Parse* family of functions to unpack them.  So
effectively, all built-in methods have the argspec (self, *args,
**keywords)

Cheers,
Ian
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to