From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Augusto Stoffel Newsgroups: gmane.emacs.bugs Subject: bug#29592: 25.3; python does not print input or output in the inferior process Date: Sat, 26 Feb 2022 17:26:07 +0100 Message-ID: <87ee3piogw.fsf@gmail.com> References: <87indjel8l.fsf@gmail.com> <8735k6obhp.fsf@sturm.com.au> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5517"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) Cc: alex.branham@gmail.com, ben@sturm.com.au To: 29592@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 26 17:27:13 2022 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 1nNzua-0001Jm-MM for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 26 Feb 2022 17:27:12 +0100 Original-Received: from localhost ([::1]:57350 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nNzuZ-0003lv-Ep for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 26 Feb 2022 11:27:11 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:53464) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nNzuQ-0003iI-1l for bug-gnu-emacs@gnu.org; Sat, 26 Feb 2022 11:27:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34097) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nNzuP-0007yg-Og for bug-gnu-emacs@gnu.org; Sat, 26 Feb 2022 11:27:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nNzuP-0001O9-Lq for bug-gnu-emacs@gnu.org; Sat, 26 Feb 2022 11:27:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Augusto Stoffel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 26 Feb 2022 16:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29592 X-GNU-PR-Package: emacs X-Debbugs-Original-To: Ben Sturmfels via "Bug reports for GNU Emacs, the Swiss army knife of text editors" X-Debbugs-Original-Cc: Alex Branham , Ben Sturmfels , 29592@debbugs.gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16458927755254 (code B ref -1); Sat, 26 Feb 2022 16:27:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 26 Feb 2022 16:26:15 +0000 Original-Received: from localhost ([127.0.0.1]:56224 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nNzte-0001Mg-Kz for submit@debbugs.gnu.org; Sat, 26 Feb 2022 11:26:14 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:46660) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nNztd-0001MZ-9L for submit@debbugs.gnu.org; Sat, 26 Feb 2022 11:26:13 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:53338) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nNztd-0002tC-35 for bug-gnu-emacs@gnu.org; Sat, 26 Feb 2022 11:26:13 -0500 Original-Received: from [2a00:1450:4864:20::632] (port=41632 helo=mail-ej1-x632.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nNzta-0007pH-Sj for bug-gnu-emacs@gnu.org; Sat, 26 Feb 2022 11:26:12 -0500 Original-Received: by mail-ej1-x632.google.com with SMTP id a8so16651067ejc.8 for ; Sat, 26 Feb 2022 08:26:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=LTN88endYxRSW2R70Xk8+HAWRZyvliTPTVIxYJVODLo=; b=Gmp5glEj4KzYSTRnVXXKIUGpy3ho6xytzEtvAXFRjZ2zKssZTy8RhEN9gOF4iCDG+Z aGn5wsw5EiqwnBoWKlrfkR0tmRHM4h7B1hSvOc1iWWxob3ITxxAAb0Izuji4ndMGpJ3R Bw4UFIBWaxSCjF//gEEl6/YczWLVcaejipEev9gt52fcEEB4W3nbw5YJYR4b5/h+rdAD uoQYwLiGttGWZql+bh2Hr8uSH+CrjAGr/l9LP1nvFyGDioYb3VHp0r/Oc+xmZh7LXtvC ncsy956rZUFfKNVBQOQkzUCRRR0G8JApgcVl1PCNx7PHp2XSQ+XjdHEUNIPIcDW/mzNm m5lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=LTN88endYxRSW2R70Xk8+HAWRZyvliTPTVIxYJVODLo=; b=PW9cH9MGwz2X/35fot3Y+vDsTGQqKE5o9k8IwIs5x/0pELRunLyayLlLNkLf4Cx0V4 4lBjcfNpBler4vXOYI/Gn6j5XXFZWIqyDoJPi5pXjcjKx6V1A6PIwfmXvQ4aNyXsRKpD 6XeE+eulG6N4Xp0TgcZbmGKATyl4oTupQLmRVkVc0uQbYcTG9kSXUo3xSOsXGk9ChX2N t+ZFoXLk/YwgjcomA6o66yfJwud1b0UMYik0toKn3uidPbdcLkw3PldQfUWQz7EZ5ViR LBwOBwNPs121Kxg1kc0dHcayrfjfN0rav5+pOGqpmXgIAgYQJrUFTv+X5AjbaoGVI1pc 8ivg== X-Gm-Message-State: AOAM533nJm4K9PTuXoSj9FnBvF1Hwc+Q3JwWdAK/sU6b3JZU0p/HdXX4 xvrLs/vtJJHOshCtKtFZ43E= X-Google-Smtp-Source: ABdhPJw9jUbKxnpN2ATD3DbkUKUVHJBv3DHw3I85GgoTWpM83gcgeHiF6FV7nd6qMaNjud5O/5NS2Q== X-Received: by 2002:a17:907:1c9f:b0:6ce:e4e5:a6d2 with SMTP id nb31-20020a1709071c9f00b006cee4e5a6d2mr10241592ejc.304.1645892769242; Sat, 26 Feb 2022 08:26:09 -0800 (PST) Original-Received: from ars3 ([2a02:8109:8ac0:56d0::758e]) by smtp.gmail.com with ESMTPSA id p14-20020a05640210ce00b00413211746d4sm2978030edu.51.2022.02.26.08.26.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Feb 2022 08:26:08 -0800 (PST) In-Reply-To: <8735k6obhp.fsf@sturm.com.au> (Ben Sturmfels via's message of "Sat, 26 Feb 2022 08:57:38 +1100") X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::632 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::632; envelope-from=arstoffel@gmail.com; helo=mail-ej1-x632.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action 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" Xref: news.gmane.io gmane.emacs.bugs:227684 Archived-At: On Sat, 26 Feb 2022 at 08:57, Ben Sturmfels via "Bug reports for GNU Emacs, the Swiss army knife of text editors" wrote: > On Wed, 06 Dec 2017, Alex Branham wrote: > >> In python-mode (from python.el), writing >> >> import pandas as pd >> pd.Series([1, 2, 3, 4, 5]) >> >> after starting an inferior python process, selecting the buffer, and >> running M-x python-shell-send-region no output is printed in the process >> buffer even though the statements are evaluated. > > I found that Python REPL output is displayed only if the python code is > on the first line of the buffer. Is this the same for you Alex? > > For example, running `emacs -q`, I open /tmp/foo.py, and M-x run-python > (C-c C-p) to open the Python REPL. Then I switch focus back to the > foo.py buffer and enter 'abc' on the first line, including quotes. I run > M-x python-shell-send-statement (C-c C-e), Emacs says 'Sent: "abc"...' > and '>>> abc\n' is displayed in the REPL. If I add a newline before > 'abc' and repeat, it says 'Sent: "abc"' and only ">>> " is printed to > the REPL. > > Same issue when using M-x python-shell-send-region (C-c C-r) and > explicitly highlighting the 'abc' when it's not the first line in the > buffer. > > I'm using GNU Emacs 27.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version > 3.24.30, cairo version 1.16.0). Windowing system distributor 'The X.Org > Foundation', version 11.0.12101002. System Description: Guix System This was fixed in Emacs 28. > Regards, > Ben