[Python-ideas] Cleaner separation of help() and interactive help.

Joao S. O. Bueno jsbueno at python.org.br
Tue Feb 8 00:11:12 CET 2011


On Mon, Feb 7, 2011 at 8:59 PM, Ben Finney <ben+python at benfinney.id.au> wrote:
> Steven D'Aprano <steve at pearwood.info> writes:
>
>> Greg Ewing wrote:
>
> (Greg's message isn't showing up on my Usenet server.)
>
>> > Come to think of it, the whole concept of a pager is something of an
>> > anti-feature nowadays, when most people's "terminal" is really a gui
>> > window with its own scrolling facilities that are considerably
>> > better than the pager's.
>
> Not at all. Most of my GUI terminal windows are running a terminal
> multiplexer, which is constantly controlling the whole terminal output
> as a full-terminal application. That totally defeats the GUI scrolling
> capability, and means that any scrolling I want to occur needs to be
> done via the terminal features.
>

I am -1 for changing the default behavior, and +1 for having a way of
help to simply return a a text string.
Maybe the addition of a keyword argumetn to help() to select this
function could make everyone happy. (Or just leave default help as is,
and add another function like nhelp() or ahelp() to simply return a
string)

   js
  -><-



More information about the Python-ideas mailing list