Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Let's call it an accidental feature. -- Larry Wall


devel / comp.lang.python / Re: unable to resolve readline issues

SubjectAuthor
* Re: unable to resolve readline issuesEryk Sun
`- Re: unable to resolve readline issuesSabrina Almodóvar

1
Re: unable to resolve readline issues

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!news.szaf.org!fu-berlin.de!uni-berlin.de!not-for-mail
From: eryksun@gmail.com (Eryk Sun)
Newsgroups: comp.lang.python
Subject: Re: unable to resolve readline issues
Date: Sun, 4 Dec 2022 14:08:36 -0600
Lines: 22
Message-ID: <mailman.1089.1670184519.20444.python-list@python.org>
References: <002b01d9069e$bd78f2c0$386ad840$@gmail.com>
<CACL+1aurUDeYCc4FBLSy+j9oKrp5KGdFVFUWVPAzwiB0QjnrnA@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Trace: news.uni-berlin.de CJRUZBXzlIpZWPmX6GNqyQLB48iTqM7eRdlJ36fM0VuA==
Return-Path: <eryksun@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=BsIZnhE3;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.003
X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'library.': 0.05;
'windows,': 0.05; 'cc:addr:python-list': 0.09; 'console,': 0.09;
'general,': 0.09; 'module.': 0.09; 'uninstall': 0.09; 'cc:no real
name:2**0': 0.14; 'import': 0.15; 'builtin': 0.16; 'command-line':
0.16; 'implements': 0.16; 'interface,': 0.16; 'releases': 0.16;
'subject:unable': 0.16; 'third-party': 0.16; 'tries': 0.16;
'uninstalled': 0.16; 'windows.': 0.16; 'wrote:': 0.16; 'python':
0.16; 'uses': 0.19; 'bug': 0.19; 'gnu': 0.19; 'subject:issues':
0.19; 'cc:addr:python.org': 0.20; 'python,': 0.25; 'cc:2**0':
0.25; 'perform': 0.26; 'function': 0.27; 'code,': 0.31; 'module':
0.31; "doesn't": 0.32; 'message-id:@mail.gmail.com': 0.32; 'same':
0.34; 'package': 0.34; 'header:In-Reply-To:1': 0.34;
'received:google.com': 0.34; 'trying': 0.35; 'runs': 0.35;
'usual': 0.35; 'from:addr:gmail.com': 0.35; 'fix': 0.36; "it's":
0.37; 'received:209.85': 0.37; 'received:209': 0.39; 'use': 0.39;
'finally': 0.62; 'email addr:gmail.com': 0.63; 'capable': 0.64;
'thus': 0.64; 'your': 0.64; 'actively': 0.69; 'instead,': 0.70;
'longer': 0.71; 'choice': 0.76; 'implemented': 0.76; 'became':
0.84; 'stated.': 0.84
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
h=cc:to:subject:message-id:date:from:references:in-reply-to
:mime-version:from:to:cc:subject:date:message-id:reply-to;
bh=OHatv1vetjDxCnYYzbSsaacR/lBg6VPP5AAOpERVkUc=;
b=BsIZnhE3JWYz/+MGDKQwJUWmS9/4TWaL33zxx+xgT2ZQ8ymmtx8hbHwHfuqZ8Zi5Yt
miiLDVfpTVUfIDG90FQmqy1ZGZMv0/x/x6r3NUka4lYMrCjSqUs7q9m2Xpv5LurUex0G
VB0pm0g9cJos7CAWPhL9TB0FfDEXUZ4aWBhhdX7D6uztqoARAADshxZaRFFMADXjxXOd
AXWPemprgw7UU4cGzep0t/drbnDtSeR4vbaLl7caXlKPf5ONfhRi+Wx1DyJ1QxLfLRv4
W1XViZjQBlSUowpA09zzn52LhkKl2/6k32qPplv7GPtGL3oMdszhYjfZ8kAO8QS0KoGt
Wqzw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=cc:to:subject:message-id:date:from:references:in-reply-to
:mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
:reply-to;
bh=OHatv1vetjDxCnYYzbSsaacR/lBg6VPP5AAOpERVkUc=;
b=q3SYOn5ZS8SH8UJFZ/mhwO1GRBzFzCMBaMTrW0jEO6Omc53z6djTpOl/i0ye4svmK9
EmUqRyjLk7enTYuM9itRKELqgO5UoSPvGEQaY792DuhN5OdrAdwXovA4n4yXnVII58k9
aBj7MpV6/xFIA4KVCeS4KJuA/2VVEtdVw8zbWZb0554ykASvkwq2sDIgkWqfuIaJoGdx
DZiHDUIgrJ7jN4rz2u0lKsLEKtcs3M5JM6Fs+M+z3HMKM0gQiqiO3EQLAXJgJaU/LNe0
OuFN6F1AmH27n99piTL2cyYQqDk73rZYGEtLDlVWVCTCriyq50+8YuGAhdFg5ZEmr+7M
NIvA==
X-Gm-Message-State: ANoB5plOHrpNZfNsS1ppaKPAuA3erbmTqf5FwlpcaLf7TbfNv3DQUfIm
lUbm3id38SlVf7AFKr5jNGeP4GK8uqyj5n595/kKPDIZ
X-Google-Smtp-Source: AA0mqf537IAT3o2mhXg2oJoICCcKPg1iJBUOtFEy9VFHezTP790lFJxChCBCFVFX5Otnj4+j36koA0xjHFf7PDe93nA=
X-Received: by 2002:a05:6808:54:b0:35a:56e7:ca40 with SMTP id
v20-20020a056808005400b0035a56e7ca40mr29597158oic.7.1670184517297; Sun, 04
Dec 2022 12:08:37 -0800 (PST)
In-Reply-To: <002b01d9069e$bd78f2c0$386ad840$@gmail.com>
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: <CACL+1aurUDeYCc4FBLSy+j9oKrp5KGdFVFUWVPAzwiB0QjnrnA@mail.gmail.com>
X-Mailman-Original-References: <002b01d9069e$bd78f2c0$386ad840$@gmail.com>
 by: Eryk Sun - Sun, 4 Dec 2022 20:08 UTC

On 12/2/22, biglee12672@gmail.com <biglee12672@gmail.com> wrote:
>
> From this point on Python became unusable as I uninstalled rebooted then
> reinstalled to find I have the same issues as stated. Finally uninstalled
> Python as it doesn't perform as usual especially trying to understand the
> use of pyreadline, gnureadline and or just readline.

When Python runs interactively, it implicitly tries to import the
readline module. On POSIX, Python has a builtin readline module that
usually uses the GNU Readline library.

On Windows, Python does not include a readline module. Instead, if
standard I/O is a console, the high-level WinAPI ReadConsoleW()
function is used, which implements its own line editor and
command-line history. It's not as general, flexible, or capable as the
readline interface, so a third-party pyreadline package was
implemented for Windows. However, as far as I know, pyreadline is no
longer actively developed. Thus it has out-of-date code, which may be
broken in newer releases of Python, such as isinstance(x,
collections.Callable).

Your choice is to either patch pyreadline to fix the bug or uninstall it.

Re: unable to resolve readline issues

<tmjatk$1q8m$1@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!aioe.org!PdWgA6kK5nvvTfq4sUKVsw.user.46.165.242.75.POSTED!not-for-mail
From: salmodovar@ligumu.com (Sabrina Almodóvar)
Newsgroups: comp.lang.python
Subject: Re: unable to resolve readline issues
Date: Sun, 4 Dec 2022 20:36:19 -0300
Organization: Aioe.org NNTP Server
Message-ID: <tmjatk$1q8m$1@gioia.aioe.org>
References: <002b01d9069e$bd78f2c0$386ad840$@gmail.com>
<CACL+1aurUDeYCc4FBLSy+j9oKrp5KGdFVFUWVPAzwiB0QjnrnA@mail.gmail.com>
<mailman.1089.1670184519.20444.python-list@python.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="59670"; posting-host="PdWgA6kK5nvvTfq4sUKVsw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.5.1
Content-Language: en-US
X-Notice: Filtered by postfilter v. 0.9.2
 by: Sabrina Almodóvar - Sun, 4 Dec 2022 23:36 UTC

On 04/12/2022 17:08, Eryk Sun wrote:
> On 12/2/22, biglee12672@gmail.com <biglee12672@gmail.com> wrote:
>>
>> From this point on Python became unusable as I uninstalled rebooted then
>> reinstalled to find I have the same issues as stated. Finally uninstalled
>> Python as it doesn't perform as usual especially trying to understand the
>> use of pyreadline, gnureadline and or just readline.
>
> When Python runs interactively, it implicitly tries to import the
> readline module. On POSIX, Python has a builtin readline module that
> usually uses the GNU Readline library.
>
> On Windows, Python does not include a readline module. Instead, if
> standard I/O is a console, the high-level WinAPI ReadConsoleW()
> function is used, which implements its own line editor and
> command-line history. It's not as general, flexible, or capable as the
> readline interface, so a third-party pyreadline package was
> implemented for Windows. However, as far as I know, pyreadline is no
> longer actively developed. Thus it has out-of-date code, which may be
> broken in newer releases of Python, such as isinstance(x,
> collections.Callable).
>
> Your choice is to either patch pyreadline to fix the bug or uninstall it.

(*) How to patch it

Open the file

Lib/site-packages/pyreadline/py3k_compat.py

and locate the procedure

def callable(x):
return isinstance(x, collections.Callable)

Change it to

def callable(x):
return isinstance(x, collections.abc.Callable)

You're done.


devel / comp.lang.python / Re: unable to resolve readline issues

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor