[issue39200] Inaccurate TypeError message for `range` without argument

Dong-hee Na report at bugs.python.org
Fri Jan 3 11:36:00 EST 2020


Dong-hee Na <donghee.na92 at gmail.com> added the comment:

I noticed that min/max builtin function also has the same problem.

For example, PyPy raise TypeError as 
TypeError: max() expects at least one argument.

PR-17814 is an update patch for this.

I suggest changing the title to be "Fix inaccurate TypeError messages when calling with insufficient arguments"

----------
nosy: +corona10, pablogsal
versions: +Python 3.5, Python 3.6

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39200>
_______________________________________


More information about the Python-bugs-list mailing list