[issue24952] stack_size([size]) is actually stack_size(size=0)

Martin Panter report at bugs.python.org
Sat Aug 29 00:21:13 CEST 2015


Martin Panter added the comment:

In my mind this notation implies the folowing should work:

>>> threading.stack_size(size=0)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: stack_size() takes no keyword arguments

Perhaps you really just want make it more explicit that the special value 0 is used by default if the argument omitted? See also Issue 8706 about supporting named keyword parameters, and Issue 13386 and Issue 23738 about other possible notations to document the default value.

----------
nosy: +martin.panter
versions: +Python 3.4, Python 3.5, Python 3.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24952>
_______________________________________


More information about the Python-bugs-list mailing list