Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #107941

Re: What should Python apps do when asked to show help?

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Grant Edwards <grant.b.edwards@gmail.com>
Newsgroups comp.lang.python
Subject Re: What should Python apps do when asked to show help?
Date Sun, 1 May 2016 13:53:39 +0000 (UTC)
Lines 31
Message-ID <mailman.283.1462110832.32212.python-list@python.org> (permalink)
References <1462074388.273747.594588777.5E705539@webmail.messagingengine.com> <20160501052434.GA98660@cskk.homeip.net> <CAPTjJmr5E8zGB6Q0WWaja1DkZqac0SVm2X5eXOvYvd4YE3vZCg@mail.gmail.com> <ng51p3$c81$1@ger.gmane.org>
X-Trace news.uni-berlin.de 3PImOz3i/AdyjyLjLuL3Zg51yuaZ5iUUZl41UzQ9uIlg==
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'subject:Python': 0.05; 'subject:help': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'apps': 0.15; '2016': 0.16; 'nope,': 0.16; 'received:80.91.229.3': 0.16; 'received:97': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'subject:show': 0.16; 'subject:when': 0.16; 'wrote:': 0.16; 'app': 0.16; 'specifies': 0.18; 'variable': 0.18; 'preferred': 0.20; 'so.': 0.22; 'recognize': 0.22; 'header:User-Agent:1': 0.26; "doesn't": 0.26; 'command': 0.26; 'header:X-Complaints-To:1': 0.26; 'chris': 0.26; 'specify': 0.27; 'invoke': 0.29; 'environment': 0.29; 'supposed': 0.31; 'option.': 0.33; 'editor': 0.34; 'but': 0.36; 'to:addr:python-list': 0.36; 'subject:?': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'expect': 0.37; 'setting': 0.37; 'say': 0.37; 'received:org': 0.37; 'does': 0.39; 'to:addr:python.org': 0.40; 'programs': 0.62; 'personal': 0.63; 'inform': 0.79; 'why?': 0.91; 'yes!': 0.91
X-Injected-Via-Gmane http://gmane.org/
X-Gmane-NNTP-Posting-Host 97-91-88-140.dhcp.roch.mn.charter.com
User-Agent slrn/1.0.2 (Linux)
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.22
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID <ng51p3$c81$1@ger.gmane.org>
X-Mailman-Original-References <1462074388.273747.594588777.5E705539@webmail.messagingengine.com> <20160501052434.GA98660@cskk.homeip.net> <CAPTjJmr5E8zGB6Q0WWaja1DkZqac0SVm2X5eXOvYvd4YE3vZCg@mail.gmail.com>
Xref csiph.com comp.lang.python:107941

Show key headers only | View raw


On 2016-05-01, Chris Angelico <rosuav@gmail.com> wrote:
> On Sun, May 1, 2016 at 3:24 PM,  <cs@zip.com.au> wrote:
>> Yes, PAGER=cat would make "man" also not page, and likely almost everything.
>> And yet I am unwilling to do so. Why?
>>
>> On reflection, my personal problems with this approach are twofold:
>>
>> - I want $PAGER to specify my preferred pager when I do want a pager, so
>> setting it to "cat" does not inform apps about my wishes
>
> So you expect the environment variable to say which of multiple pagers
> you might want, but only when you already want a pager.

Yes!

Just like EDITOR specifies which editor to use _when_ _you_ _want_
_to_ _use_ _an_ _editor_.  It doesn't tell programs to invoke an
editor all the time.

> Okay. How is an app supposed to know whether or not to use a pager?

Command line option.

> How do you expect them to mindread?

Nope, just recognize '-p' or somesuch.

-- 
Grant

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Re: What should Python apps do when asked to show help? Grant Edwards <grant.b.edwards@gmail.com> - 2016-05-01 13:53 +0000
  Re: What should Python apps do when asked to show help? Marko Rauhamaa <marko@pacujo.net> - 2016-05-01 18:08 +0300
    Re: What should Python apps do when asked to show help? Grant Edwards <grant.b.edwards@gmail.com> - 2016-05-01 16:30 +0000
      Re: What should Python apps do when asked to show help? Steven D'Aprano <steve@pearwood.info> - 2016-05-02 02:36 +1000
        Re: What should Python apps do when asked to show help? Grant Edwards <grant.b.edwards@gmail.com> - 2016-05-01 17:04 +0000
          Re: What should Python apps do when asked to show help? Steven D'Aprano <steve@pearwood.info> - 2016-05-02 11:48 +1000
            Re: What should Python apps do when asked to show help? Terry Reedy <tjreedy@udel.edu> - 2016-05-02 02:34 -0400
        Re: What should Python apps do when asked to show help? Gene Heskett <gheskett@wdtv.com> - 2016-05-01 13:09 -0400
        Re: What should Python apps do when asked to show help? Random832 <random832@fastmail.com> - 2016-05-01 13:49 -0400
        Re: What should Python apps do when asked to show help? Ethan Furman <ethan@stoneleaf.us> - 2016-05-01 10:54 -0700

csiph-web