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/2010-May/100203.html below:

[Python-Dev] Reasons behind misleading TypeError message when passing the wrong number of arguments to a method

[Python-Dev] Reasons behind misleading TypeError message when passing the wrong number of arguments to a method [Python-Dev] Reasons behind misleading TypeError message when passing the wrong number of arguments to a methodGreg Ewing greg.ewing at canterbury.ac.nz
Thu May 20 09:26:22 CEST 2010
John Arbash Meinel wrote:

> Because you wouldn't want to have
> 
> A.echo()
> 
> Say that it takes 1 argument and (-1 given) ?

Something like "1 argument in addition to 'self'" would be
reasonably clear and would cover both situations.

+1 on fixing this from me, too. Even when you understand
exactly what's going on, it's annoying having to make the
mental adjustment every time.

-- 
Greg
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