Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Random832 Newsgroups: comp.lang.python Subject: Re: What should Python apps do when asked to show help? Date: Sat, 30 Apr 2016 20:41:51 -0400 Lines: 29 Message-ID: References: <5724253e$0$22142$c3e8da3$5496439d@news.astraweb.com> <20160430235132.GA83556@cskk.homeip.net> <1462063311.237252.594520729.52D9D362@webmail.messagingengine.com> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de ugC2TPJ3Ou4+Ospwwsqa9Q8pY/w1mZAZUinU4yi7Qz5A== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:Python': 0.05; '*not*': 0.07; 'feature.': 0.07; 'subject:help': 0.07; 'convention,': 0.09; 'git': 0.09; 'received:internal': 0.09; 'spawn': 0.09; 'python': 0.10; 'explicitly': 0.15; 'invoking': 0.16; 'message-id:@webmail.messagingengine.com': 0.16; 'received:10.202': 0.16; 'received:10.202.2': 0.16; 'received:10.202.2.212': 0.16; 'received:66.111': 0.16; 'received:66.111.4': 0.16; 'received:io': 0.16; 'received:messagingengine.com': 0.16; 'received:psf.io': 0.16; 'subject:show': 0.16; 'subject:when': 0.16; 'subprocess': 0.16; 'wrote:': 0.16; 'variable': 0.18; 'do.': 0.22; 'sat,': 0.23; "haven't": 0.24; 'header:In-Reply-To:1': 0.24; 'feature': 0.24; "doesn't": 0.26; 'sense': 0.26; 'for,': 0.29; 'name?': 0.29; 'environment': 0.29; 'asked': 0.29; "we're": 0.30; 'rules': 0.31; "can't": 0.32; 'run': 0.33; 'right?': 0.33; 'open': 0.33; 'case,': 0.34; 'but': 0.36; 'to:addr:python-list': 0.36; 'subject:?': 0.36; 'subject:: ': 0.37; 'received:10': 0.37; 'setting': 0.37; 'turn': 0.37; 'environment.': 0.37; 'things': 0.38; "won't": 0.38; 'received:66': 0.38; 'turned': 0.38; 'someone': 0.38; 'why': 0.39; 'rather': 0.39; 'to:addr:python.org': 0.40; 'header:Message-Id:1': 0.61; '30,': 0.63; 'karl': 0.84; 'off,': 0.84; 'spawned': 0.84; 'terrible': 0.84 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=6zERD3Ykw5KC0kwzI/zjnqUE0sU=; b=Pl9Za4 E6ynXoqPxzDFvXhKyFLXfd74mZV2vc7ENonPeVKY3pPr20dTBjFi0PoPX9sNQkx1 fWm6iOVXzDB3mY8dApwlmAJxxHf48uTsVeKrCbJw3sjxQ+EYQzRxRtaRLD0bUSsA CBJtpUldkzoPpnnsCOdD8KNztjNBYtMAzh8eM= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=6zERD3Ykw5KC0kw zI/zjnqUE0sU=; b=l4X03SbOZfi8qV5LkYuxqqu6L/Tk/tYQ6Iv479Aqjs63pjl L6E3237YXVi9l0rkU1yr5avWq0rwF7l91BJOuvFZn82IN8TrF7iSp+BZ3QrHV4d9 iLsVTzr8+L0dX3kOUJ29ooNdt/1FElFqIjbMrVLGJTdqq5crQ7bNYaqH4KCw= X-Sasl-Enc: zI3dzkTIwTZ/eie5mTyxRtnqt1bkgcJUE/f8jyeMByCu 1462063311 X-Mailer: MessagingEngine.com Webmail Interface - ajax-491eb5a4 In-Reply-To: <20160430235132.GA83556@cskk.homeip.net> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: <1462063311.237252.594520729.52D9D362@webmail.messagingengine.com> X-Mailman-Original-References: <5724253e$0$22142$c3e8da3$5496439d@news.astraweb.com> <20160430235132.GA83556@cskk.homeip.net> Xref: csiph.com comp.lang.python:107929 On Sat, Apr 30, 2016, at 19:51, cs@zip.com.au wrote: > _When_ they want a pager. Why would they need an environment variable at all in that case, rather than explicitly invoking the pager by name? To me, *not* having PAGER=cat signifies that someone *does* want a pager. That may be a crappy convention, but it's the one we're stuck with. > And setting PAGER=cat before invoking interactive python is no better, > because > it will screw with $PAGER in any subprocess spawned from that > environment. But why would you not *also* want PAGER=cat in those subprocesses? You don't want those things to spawn pagers that you haven't asked explicitly for, either, right? I don't get the "It's terrible if I run man or git it won't open a pager, but I don't want pydoc to use a pager" viewpoint. It just doesn't make any sense to me. > Let me recite one of my favourite rules of thumb: > > If it can't be turned off, it's not a feature. - Karl Heuer You turn it off by setting PAGER=cat. The fact that pydoc uses a pager is the *same* feature as the fact that git and man do.