Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

<james> abuse me. I'm so lame I sent a bug report to debian-devel-changes -- Seen on #Debian


devel / comp.lang.python / Re: Baffled by readline module

SubjectAuthor
o Re: Baffled by readline moduleGrant Edwards

1
Re: Baffled by readline module

<mailman.2241.1678400294.20444.python-list@python.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=22316&group=comp.lang.python#22316

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: grant.b....@gmail.com (Grant Edwards)
Newsgroups: comp.lang.python
Subject: Re: Baffled by readline module
Date: Thu, 09 Mar 2023 14:18:10 -0800 (PST)
Lines: 28
Message-ID: <mailman.2241.1678400294.20444.python-list@python.org>
References: <640a4ade.020a0220.1d3cb.0243@mx.google.com>
<ZApWxU8mT9uwkp+x@cskk.homeip.net>
<640a5b22.050a0220.f0fb6.039e@mx.google.com>
X-Trace: news.uni-berlin.de 5v+ofk6LQDF/s5uJXIsMSQOCY3NdeoPNtgxdTkNySm8g==
Return-Path: <grant.b.edwards@gmail.com>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=gmail.com header.i=@gmail.com header.b=eET0coJE;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.006
X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'string': 0.07;
'subject:module': 0.07; 'cases.': 0.09; 'paragraph': 0.09;
'affects': 0.16; 'cameron': 0.16; 'computers.': 0.16; 'elsewhere':
0.16; 'fetch': 0.16; 'from:addr:grant.b.edwards': 0.16;
'from:name:grant edwards': 0.16; 'prompts': 0.16; 'simpson': 0.16;
'stdout': 0.16; 'wrote:': 0.16; 'says': 0.17; 'to:addr:python-
list': 0.20; 'input': 0.21; "i'd": 0.24; 'anything': 0.25;
'stuff': 0.25; 'opening': 0.26; 'printed': 0.28; 'header:User-
Agent:1': 0.30; 'module': 0.31; "doesn't": 0.32; 'guess': 0.32;
'there': 0.33; 'received:google.com': 0.34; 'handling': 0.35;
'track': 0.35; 'received:209.85.166': 0.35; 'from:addr:gmail.com':
0.35; 'change': 0.36; 'received:209.85': 0.37; 'could': 0.38;
'means': 0.38; 'read': 0.38; 'received:209': 0.39; 'changes':
0.39; 'quite': 0.39; 'list': 0.39; 'use': 0.39; 'seeing': 0.39;
'method': 0.61; 'finally': 0.62; 'spend': 0.64; 'sentence': 0.69;
'head,': 0.91
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20210112; t=1678400291;
h=to:user-agent:references:subject:from:date:message-id:from:to:cc
:subject:date:message-id:reply-to;
bh=yB1Crp1FKmVe5jfQEjEbqECv+WHB7Lhhr4LzPFIoQ70=;
b=eET0coJEcMaDWb/Sz+zKx5sT8o6lvhdUTRXbqm2fdFj5yAI8VpPKPKpYy1vGHLuf97
YgAYi1ZTOLvtqfAnB/w+qUcUhmOhENa2mIuAMupL4Ls1W501TZRRHFaqSxRiYwDZVwnp
gM6BDUk2wlPKfHvqwakmlQKCUz6CRZDKPur7f+/aoJGGo63zY7JGFEqtEAOFLKjyred8
lb91c6shtWvUlkes65mZqMgyPZKP7Ck4jMrPrs1k2LG5LUCVxTgjNHzyUTnfvbkImSPz
426PcDfnWU761erHbaXoFOBzE0tIMEMitMXYjtIMDYsrUlkVaKIMHfx7L/i4eDGjJh+R
htCw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112; t=1678400291;
h=to:user-agent:references:subject:from:date:message-id
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
bh=yB1Crp1FKmVe5jfQEjEbqECv+WHB7Lhhr4LzPFIoQ70=;
b=mWnHfSSS8DNQvVph00mCjj+RKbT1I61GJWrnV0ALzGHp1404IV10e7g63FGnqHcFGs
U9soiarQ9aer3MrB8epLXlrAHAgfSJRGyfSXefcqDKbRR7jhDMWYIhtsD9N7Vx51Bnvw
bH3uqo2X/J+yZwemP0AQvoFi11xf+nNy6QqSZ3+vXmyTBfJAVRIPjih35TKeYFG1pFkN
3WXmnSwC5eN7GIGcNI244/DoAxYocY1opByxpFOdPlrM4VauWvsEPBbLhxhEE/1TuK02
QUFC0s4wm5qJ9pQt1hZburnhVotg/+hH9kMOw/fliKwHLIBFxyL4FprKmvJpd+dEGFiU
O3GQ==
X-Gm-Message-State: AO0yUKXyF3pLZ8VLcrs9cj9ZRLexWZ3wYnfRJeW7Ies2p4KPVTDTOUef
wXPRTnQeFDj2q7AXBVPMswLii6mC6W0dHA==
X-Google-Smtp-Source: AK7set/8CCTHmDGy/mztm7WuCQfzeK+xAi5QzULbjHzQocD09v4YenqfuPunt7HMPnu1x7/GI7uMQg==
X-Received: by 2002:a05:6e02:2164:b0:316:f99d:9ea2 with SMTP id
s4-20020a056e02216400b00316f99d9ea2mr20898996ilv.17.1678400291387;
Thu, 09 Mar 2023 14:18:11 -0800 (PST)
User-Agent: slrn/1.0.3 (Linux)
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
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: <https://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: <640a5b22.050a0220.f0fb6.039e@mx.google.com>
X-Mailman-Original-References: <640a4ade.020a0220.1d3cb.0243@mx.google.com>
<ZApWxU8mT9uwkp+x@cskk.homeip.net>
 by: Grant Edwards - Thu, 9 Mar 2023 22:18 UTC

On 2023-03-09, Cameron Simpson <cs@cskk.id.au> wrote:

> [...]
>>It finally dawned on me after seeing an example I found elsewhere that
>>you don't call some module method to fetch the next user-entered line.
>>
>>You call the input() built-in.
>
> Ah. That's not overtly stated? [...reads...] Ah, there it is in the last
> sentence of the opening paragraph. Not quite as in-your-face as I'd have
> liked it.

What threw me off the track for a while was that the sentence to which
you refer says it affects the "prompts offered by input()". In my head,
that means it changes the string that's printed on stdout before stuff
is read from stdin. That's different that affecting the handling of
user input read by input().

It doesn't actually change anything about the prompts provided by
input(). It changes the handling of the user input by input().

I guess I read it too literally. I must spend too much time with
computers.

> That paragraph could do with being a bullet list of use cases.

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor