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/2018-July/154844.html below:

[Python-Dev] Error message for wrong number of arguments

[Python-Dev] Error message for wrong number of arguments [Python-Dev] Error message for wrong number of argumentsJeroen Demeyer J.Demeyer at UGent.be
Mon Jul 30 14:39:42 EDT 2018
On 2018-07-30 20:22, Chris Barker wrote:
> is it possible for the interpreter to know when this error is
> generated that this is a bound method expecting a "self", rather than an
> arbitrary function with n parameters?

That would be quite hard. The error message is generated by the 
underlying function. At that point, the information of how it was called 
(as bound method or not) is already gone.


Jeroen.
More information about the Python-Dev mailing list

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