[issue37466] Move casting prompt after its validation in _raw_input()

Tal Einat report at bugs.python.org
Mon Jul 1 05:59:11 EDT 2019


Tal Einat <taleinat at gmail.com> added the comment:

This is a subtle change with the potential to affect more than just performance. Also, in this case, the performance is likely negligible in every actual use-case.

This might actually be more correct, though. For example, one would expect passing prompt=None to result in no prompt displayed, rather than "None".

----------
nosy: +taleinat

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


More information about the Python-bugs-list mailing list