Mark Dickinson <dicki...@gmail.com> added the comment:

I would suggest adding a note to the documentation stating clearly that 
the parameter should be nonzero.  The documentation is also unclear on 
whether a negative parameter value is permitted, although the current code 
works exactly the way that I'd expect for a negative parameter.

If a negative parameter is permitted then the last sentence of the 
docstring:

"""... Returned values range from 0 to positive infinity."""

is inaccurate, since values range from 0 to negative infinity in that 
case.  If it's not supposed to be permitted then perhaps the docstring 
should mention that the parameter should be positive?

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue4869>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to