This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author steven.daprano
Recipients myungsekyo, steven.daprano, taleinat
Date 2019-07-01.10:08:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1561975700.85.0.972699697561.issue37466@roundup.psfhosted.org>
In-reply-to
Content
I don't think that will work. If the user passes a non-string which is falsey, your patch will attempt to write it directly to the stream without converting it to a string.

Try ``_raw_input(0)`` as an example.

Tal Einat:
> one would expect passing prompt=None to result in no prompt displayed

I wouldn't. That's not how getpass works now, or input.

By the way, myungsekyo, that's not the best way to use timeit to time code snippets. You are timing the overhead of the loop, ten million lookups of the name "_raw_input", and most importantly, ten million times that _raw_input halts waiting for input from the user. Surely you didn't sit there hitting Enter over and over again?
History
Date User Action Args
2019-07-01 10:08:21steven.dapranosetrecipients: + steven.daprano, taleinat, myungsekyo
2019-07-01 10:08:20steven.dapranosetmessageid: <1561975700.85.0.972699697561.issue37466@roundup.psfhosted.org>
2019-07-01 10:08:20steven.dapranolinkissue37466 messages
2019-07-01 10:08:20steven.dapranocreate