From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Liu Hui Newsgroups: gmane.emacs.bugs Subject: bug#68559: [PATCH] Improve Python shell completion Date: Tue, 20 Feb 2024 12:46:28 +0800 Message-ID: References: <6BAFD8BF-8F18-4D9F-9DB3-A185AEF2EBCA@gmail.com> <867cj5wuo6.fsf@gnu.org> <865xypwu5e.fsf@gnu.org> <87il2kvbh5.fsf@epfl.ch> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16844"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , kobarity@gmail.com, mattias.engdegard@gmail.com, 68559@debbugs.gnu.org To: "Basil L. Contovounesios" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Feb 20 05:49:07 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rcI3y-00046w-LT for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 20 Feb 2024 05:49:02 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rcI3e-0000wW-6j; Mon, 19 Feb 2024 23:48:42 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rcI3d-0000wG-8p for bug-gnu-emacs@gnu.org; Mon, 19 Feb 2024 23:48:41 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rcI3c-0002Xq-Uv for bug-gnu-emacs@gnu.org; Mon, 19 Feb 2024 23:48:41 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rcI3y-0000cu-2T for bug-gnu-emacs@gnu.org; Mon, 19 Feb 2024 23:49:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Liu Hui Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 20 Feb 2024 04:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68559 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 68559-submit@debbugs.gnu.org id=B68559.17084044912093 (code B ref 68559); Tue, 20 Feb 2024 04:49:02 +0000 Original-Received: (at 68559) by debbugs.gnu.org; 20 Feb 2024 04:48:11 +0000 Original-Received: from localhost ([127.0.0.1]:44131 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rcI38-0000Xf-MS for submit@debbugs.gnu.org; Mon, 19 Feb 2024 23:48:10 -0500 Original-Received: from mail-ua1-f51.google.com ([209.85.222.51]:53508) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rcI35-0000XB-A0 for 68559@debbugs.gnu.org; Mon, 19 Feb 2024 23:48:09 -0500 Original-Received: by mail-ua1-f51.google.com with SMTP id a1e0cc1a2514c-7d2e21181c1so2894177241.3 for <68559@debbugs.gnu.org>; Mon, 19 Feb 2024 20:47:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708404400; x=1709009200; darn=debbugs.gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=AHtxVf2ekS56mn8At9tJnomT6DxoovgXIPAK3oqNZHI=; b=HlLA7kj7FIRRC6JXV5mARpxwhp0htHbn6Z5GKiagSAxw0l11MgDsGDL9eQx/6KQ7yr xhlVt/c7SKCWl+UtNM9jVidt/YZk7QQkVUFf74PsOJ9G8ZYxv9lUzWLZ2gczUCfv3cwr 2/zHfi1NBuSA/HNXh+O5y8lTNLE3DmAX7IW0oXOsi6QZ2P/2x8q3rxIw2quDTFEI1tSL 7wf9yadm9pDVE/5JM78WmjZvGg7weQVBO7lYYp3eEEAxlBN/q14N7VlDTcl2PSpVIKA1 3t1GAH56Tyh6lqgqH4tiI2QCgV1l0sKsNH3jZjh+9CypWT3mwEiAcpRGOosTw3nxweQi LpAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708404400; x=1709009200; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=AHtxVf2ekS56mn8At9tJnomT6DxoovgXIPAK3oqNZHI=; b=NyWizIHjj68V4Ohs/LWRcCzTh2wuM4er9dfsvQv2tGLeWG9LsSTAEaJzKJVbCjZd7Q lA91Awyg9yQsu6NHN4Mk3uCnQc4W01h2Hm4xO20I2TfDbLk26JnDxTToMV1H0MoJ0+fE jAOIw83Ee9y6Ly0RkvifhO8Qlr0dSgPYD1qRXSm7PJ5MhlxbWOlZlpq5QNPzfwTRDXxD S69UGArNPIVEWsG0rCbJhOHyFmdTUzpxdZHMWtvLZiz23d7WtnxbuBkH2V2rRGQ2Y9iz eYkTiQnGMMjonkihgHpar85ObOXq0s41IGyQazWU/YewulFxQAKlijDNaoth0i8T2A1H d/4A== X-Forwarded-Encrypted: i=1; AJvYcCVNLYp7m9LTPunthZKDWHT547mQpXprBxwYgTCpvSOUx/LIKRwKF/A28E0bQtq/0aqu9kiB1ZDdGJbl79/eP6lz9+zaZ6s= X-Gm-Message-State: AOJu0Yx6RxbRcSKcwjjMS9vxrF9wuICRiGPYjLbk9Gurp51UqPT1gR7Y FEXS5PoGtWkMa4LztvzZdTbZR3IKifzUeXkALko4G+FEFPo9L3gpOky8DelEgZWMEj3njNtria9 SZ3bYD2Y3oY5sTZ5VQvMQIgCRuLo= X-Google-Smtp-Source: AGHT+IE9TZ0kKN3mibUdSWInMI+gbzMxOJLmu6kgCKQHz4GxGCMex0pt/kcTUQUmEzvfgXPeJHI+xRfuoPHK31CoxFo= X-Received: by 2002:a1f:df42:0:b0:4ca:80c5:752e with SMTP id w63-20020a1fdf42000000b004ca80c5752emr4432024vkg.5.1708404399977; Mon, 19 Feb 2024 20:46:39 -0800 (PST) In-Reply-To: <87il2kvbh5.fsf@epfl.ch> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:280310 Archived-At: On Mon, Feb 19, 2024 at 9:18=E2=80=AFPM Basil L. Contovounesios wrote: > > BTW, I have been seeing an IPython test failure on GNU/Linux: > > > Any pointers? > > Thanks, Hi, I cannot reproduce the problem with Python 3.12 and IPython 8.21. Can you check the results with the following steps? Thanks. 1. start Python shell with IPython interpreter, i.e. (setq python-shell-interpreter "ipython") (setq python-shell-interpreter-args "-i --simple-prompt") M-x run-python 2. M-x python-shell-completion-native-turn-off 3. eval code in the Python shell: import re from IPython.core.completer import provisionalcompleter with provisionalcompleter(): print(list(get_ipython().Completer.completions('re.split("a", "abc", maxs', 25))) expected output: [] __PYTHON_EL_get_completions('re.split("a", "abc", maxs') expected output: '[["maxsplit=3D", 21, 25, "param", ""]]'