By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,172 Members | 727 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,172 IT Pros & Developers. It's quick & easy.

Method argument names

P: n/a
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

Nov 22 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
ma********@gmail.com 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 'o****@xiludom.gro'.split('@')])"
Nov 22 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.