Method argument names

2006-11-22 Thread [EMAIL PROTECTED]
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

Re: Method argument names

2006-11-22 Thread Bruno Desthuilliers
[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]