[Python-ideas] Default value for input
Guido van Rossum
guido at python.org
Tue Apr 1 18:37:47 CEST 2014
On Tue, Apr 1, 2014 at 9:16 AM, Steven D'Aprano <steve at pearwood.info> wrote:
> Leave the field blank to accept "Something" as the default.
> Type a thing here: _______________________________
>
> I wouldn't accept that in my GUI apps, and I don't think that it's
> acceptable in console apps either.
>
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).
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).
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.
--
--Guido van Rossum (python.org/~guido)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20140401/719f8124/attachment.html>
More information about the Python-ideas
mailing list