<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Apr 1, 2014 at 9:16 AM, Steven D'Aprano <span dir="ltr"><<a href="mailto:steve@pearwood.info" target="_blank">steve@pearwood.info</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Leave the field blank to accept "Something" as the default.<br>
Type a thing here: _______________________________<br>
<br>
I wouldn't accept that in my GUI apps, and I don't think that it's<br>
acceptable in console apps either.<br></blockquote><div><br></div><div>Ah, but that's the difference. In GUI apps it's the standard approach (although it's amazing how many GUI apps tend to get edge cases wrong, and it doesn't combine well with the new trend to put dimmed "hint" text in the box instead).<br>
<br>But in console apps it's *not* common, except perhaps in certain curses-based apps (which really are trying to emulate GUI apps using an older paradigm).<br><br></div><div>I think it's fine for people to figure out how to do this using the available tools (e.g readline) and experiment. I don't think the idea is anywhere near the bar of adding to the stdlib.<br clear="all">
</div></div><br>-- <br>--Guido van Rossum (<a href="http://python.org/~guido">python.org/~guido</a>)
</div></div>