Re: Method argument names
[EMAIL PROTECTED] wrote: > Hi > > Having a method: > > def method(self,x,y): > > is it possible to discover, from outside the method, that the methods > arguments are ['self', 'x', 'y']? import inspect help(inspect.getargspec) HTH -- bruno desthuilliers python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for p in '[EMAIL PROTECTED]'.split('@')])" -- http://mail.python.org/mailman/listinfo/python-list
Method argument names
Hi Having a method: def method(self,x,y): is it possible to discover, from outside the method, that the methods arguments are ['self', 'x', 'y']? Thanks. /Martin -- http://mail.python.org/mailman/listinfo/python-list