Method argument names

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • martinskou@gmail.com

    #1

    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

  • Bruno Desthuilliers

    #2
    Re: Method argument names

    martinskou@gmai l.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.ge targspec)

    HTH
    --
    bruno desthuilliers
    python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
    p in 'onurb@xiludom. gro'.split('@')])"

    Comment

    Working...