¡@

Home 

python Programming Glossary: arity

How to find out the arity of a method in Python

http://stackoverflow.com/questions/990016/how-to-find-out-the-arity-of-a-method-in-python

to find out the arity of a method in Python I'd like to find out the arity of a method.. the arity of a method in Python I'd like to find out the arity of a method in Python the number of parameters that it receives.. parameters that it receives . Right now I'm doing this def arity obj method return getattr obj.__class__ method .func_code.co_argcount..