[New-bugs-announce] [issue37086] time.sleep error message misleading

Justin Fay report at bugs.python.org
Wed May 29 06:37:02 EDT 2019


New submission from Justin Fay <johnplayerblue at gmail.com>:

Using python3.6 and calling `time.sleep` with an invalid argument the `TypeError` raised has the error message "TypeError: an integer is required". This is not the case as a float or integer is acceptable. Using python 2.7 the error message given is better "TypeError: a float is required".

----------
messages: 343880
nosy: Justin Fay
priority: normal
severity: normal
status: open
title: time.sleep error message misleading
versions: Python 3.6

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


More information about the New-bugs-announce mailing list