A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2002-November/029973.html below:

[Python-Dev] inspect.getargspec()

[Python-Dev] inspect.getargspec()Ka-Ping Yee ping@zesty.ca
Thu, 7 Nov 2002 04:19:22 -0600 (CST)
On Wed, 6 Nov 2002, Patrick K. O'Brien wrote:
> Except the net (args required minus args given) is the same in both cases.
> Which would argue for not including self in the results of getargspec().
> Plus, you'll get an error if you try to explicitly pass the first argument.
> So while technically self *is* part of the argspec, I think in practice
> most applications will end up wanting to eliminate it because Python takes
> care of it implicitly.

I think it would make the most sense to display the signature you would
actually use when calling the method object.  That is, if the method is
unbound, then 'self' should appear.  If the method is bound, then 'self'
should not appear.


-- ?!ng




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4