From unknown Sun Aug 10 12:54:41 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#2252 <2252@debbugs.gnu.org> To: bug#2252 <2252@debbugs.gnu.org> Subject: Status: python-load-file in python.el does not seem to work Reply-To: bug#2252 <2252@debbugs.gnu.org> Date: Sun, 10 Aug 2025 19:54:41 +0000 retitle 2252 python-load-file in python.el does not seem to work reassign 2252 emacs submitter 2252 Mikko Huhtala severity 2252 normal thanks From rgm@gnu.org Mon Feb 9 11:37:36 2009 Received: (at quiet) by emacsbugs.donarmstrong.com; 9 Feb 2009 19:37:37 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.0 required=4.0 tests=X_DEBBUGS_NO_ACK autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n19JbXBR008804 for ; Mon, 9 Feb 2009 11:37:34 -0800 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1LWbus-0003Iw-1A for quiet@emacsbugs.donarmstrong.com; Mon, 09 Feb 2009 14:35:38 -0500 From: Mikko Huhtala To: quiet@debbugs.gnu.org Subject: python-load-file in python.el does not seem to work Date: Tue, 3 Feb 2009 23:14:31 +0200 Lines: 23 X-From-Line: emacs-devel-bounces+rgm=gnu.org@gnu.org Tue Feb 3 16:18:42 2009 Received: from mx10.gnu.org ([199.232.76.166]:55821) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1LUSfJ-0004HK-KT for rgm@gnu.org; Tue, 03 Feb 2009 16:18:42 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LUSh1-0008HN-QJ for rgm@gnu.org; Tue, 03 Feb 2009 16:20:28 -0500 Received: from lists.gnu.org ([199.232.76.165]:43747) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LUSh1-0008HH-Kr for rgm@gnu.org; Tue, 03 Feb 2009 16:20:27 -0500 Received: from localhost ([127.0.0.1]:38053 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LUSh1-0007Yr-Id for rgm@gnu.org; Tue, 03 Feb 2009 16:20:27 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LUSbM-00052G-NW for emacs-devel@gnu.org; Tue, 03 Feb 2009 16:14:36 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LUSbL-00051o-OV for emacs-devel@gnu.org; Tue, 03 Feb 2009 16:14:36 -0500 Received: from [199.232.76.173] (port=52614 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LUSbL-00051l-JQ for emacs-devel@gnu.org; Tue, 03 Feb 2009 16:14:35 -0500 Received: from smtp2.abo.fi ([130.232.213.77]:46512) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LUSbL-0007Gb-5v for emacs-devel@gnu.org; Tue, 03 Feb 2009 16:14:35 -0500 Received: from urquell.abo.fi.abo.fi (urquell.abo.fi [130.232.210.248]) by smtp2.abo.fi (8.14.3/8.12.9) with ESMTP id n13LEVjb025995 for ; Tue, 3 Feb 2009 23:14:31 +0200 X-Debbugs-No-Ack: yes X-Mailer: VM 8.0.12 under 23.0.90.1 (i686-pc-linux-gnu) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (smtp2.abo.fi [130.232.213.77]); Tue, 03 Feb 2009 23:14:31 +0200 (EET) X-Virus-Scanned: by foxy.abo.fi (foxy.abo.fi: Tue Feb 3 23:14:31 2009) X-Scanned-By: MIMEDefang 2.64 on 130.232.213.77 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+rgm=gnu.org@gnu.org X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Message-ID: <243aenjtdi.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: Glenn Morris [ resent from http://lists.gnu.org/archive/html/emacs-devel/2009-02/msg00220.html ] I've ran inferior Python from both 23.0.90 and today's (2009-02-03) CVS version. Python-load-file (C-c C-l) does not seem to do anything in either. I do get Fontifying *Python*<2>... (regexps...........) menu-bar Python Import/reload file /home/mhuhtala/test/test.py loaded in *Messages* but the module that was supposed to be loaded never appears in the Python session and all I get is NameErrors if I try to use it. This is on Fedora 10 (x86) with Python 2.5.2 and glibc 2.9-3. I compiled both Emacs versions on the system with GCC 4.3.2-7. Doing the same with the same Python file in Fedora 7 and its Emacs 22 does work as expected. Mikko From lekktu@gmail.com Mon Feb 9 13:05:30 2009 Received: (at control) by emacsbugs.donarmstrong.com; 9 Feb 2009 21:05:30 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: ** X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=2.3 required=4.0 tests=MISSING_SUBJECT,NOSUBJECT, VALID_BTS_CONTROL autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from mail-ew0-f10.google.com (mail-ew0-f10.google.com [209.85.219.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n19L5MAf031968 for ; Mon, 9 Feb 2009 13:05:23 -0800 Received: by ewy3 with SMTP id 3so2811189ewy.1 for ; Mon, 09 Feb 2009 13:05:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=eGdJRALjHU4/ReXmsiJAHpNrfxHlk7R2MDQXK1qV5vc=; b=HPSc/ktCFU2ByPEjpf0MhBLAG8h5Yn6LVnSUL9BJNiAZn6Q2RdDS8Jt2Bzchpo4DrR lBP6aj5rjr4sFO4gw4qDGQDJ8t7z9L/+Ty9Xucs/yriSJVsdmIZPoH2nM6hjZIRopLNi 4qVdq0G+cd+Zdfd9gYXbhwjAbtdXB7Q6gKZPc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=WXm/Z4MCXc/T41zL/OoD1yLBkkVPtS/I+/Nyu8qgvcOCAmIvlmVcYdQksdblI0X7XE CqMZbiC9jc7+jdsD+bBaxiL3bx0rw94Ec+AwvFZRkEqCucQaAnkM1JmlgL1It8iMJPy4 OUoeQhKdrbgP7+BUx8lj/X9vaPQbfx8lz4UL0= MIME-Version: 1.0 Received: by 10.210.89.4 with SMTP id m4mr4150900ebb.102.1234213516663; Mon, 09 Feb 2009 13:05:16 -0800 (PST) Date: Mon, 9 Feb 2009 22:05:16 +0100 Message-ID: Subject: From: Juanma Barranquero To: control@debbugs.gnu.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit reassign 2238 emacs,python reassign 2246 spam reassign 2251 emacs,rmail reassign 2252 emacs,python reassign 2253 spam reassign 2254 spam quit From rgm@gnu.org Wed Mar 25 10:37:41 2009 Received: (at control) by emacsbugs.donarmstrong.com; 25 Mar 2009 17:37:41 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.0 required=4.0 tests=VALID_BTS_CONTROL autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n2PHbcKh016927 for ; Wed, 25 Mar 2009 10:37:39 -0700 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1LmX2o-0000L3-1x; Wed, 25 Mar 2009 13:37:38 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18890.27617.974464.753463@fencepost.gnu.org> Date: Wed, 25 Mar 2009 13:37:37 -0400 From: Glenn Morris To: control Subject: control message reassign 2771 emacs,ns reassign 2779 emacs,python merge 2779 2252 reassign 2778 emacs,ns severity 2776 minor reassign 2775 spam reassign 2774 spam From mhuhtala@abo.fi Sat May 2 16:34:14 2009 Received: (at 2252) by emacsbugs.donarmstrong.com; 2 May 2009 23:34:14 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.0 required=4.0 tests=none autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from smtp2.abo.fi (smtp2.abo.fi [130.232.213.77]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n42NYAO8016573 for <2252@emacsbugs.donarmstrong.com>; Sat, 2 May 2009 16:34:12 -0700 Received: from urquell.abo.fi.abo.fi (urquell.abo.fi [130.232.210.248]) by smtp2.abo.fi (8.14.3/8.12.9) with ESMTP id n42NY8Eo001692 for <2252@emacsbugs.donarmstrong.com>; Sun, 3 May 2009 02:34:08 +0300 From: Mikko Huhtala MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18940.55408.50116.476516@urquell.abo.fi> Date: Sun, 3 May 2009 02:34:08 +0300 To: 2252@debbugs.gnu.org Subject: still present in 23.0.93 pretest X-Mailer: VM 8.0.12 under 23.0.93.1 (i686-pc-linux-gnu) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (smtp2.abo.fi [130.232.213.77]); Sun, 03 May 2009 02:34:08 +0300 (EEST) X-Virus-Scanned: by foxy.abo.fi (foxy.abo.fi: Sun May 3 02:34:08 2009) X-Scanned-By: MIMEDefang 2.64 on 130.232.213.77 The problem with python-load-file seems to still be there in 23.0.93 pretest (tested with python-2.5.2-1.fc10.i386 on Fedora 10). The function python-load-file itself is unchanged compared to Emacs 22. In Emacs 22 it works for me but in 23 it does not. From cyd@stupidchicken.com Sun May 3 07:42:14 2009 Received: (at 2252) by emacsbugs.donarmstrong.com; 3 May 2009 14:42:14 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.1 required=4.0 tests=FOURLA autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n43EgBMj018788 for <2252@emacsbugs.donarmstrong.com>; Sun, 3 May 2009 07:42:12 -0700 Received: by cyd.mit.edu (Postfix, from userid 1000) id 2AD4857E246; Sun, 3 May 2009 10:42:17 -0400 (EDT) From: Chong Yidong To: Mikko Huhtala Cc: 2252@debbugs.gnu.org Subject: Re: python-load-file in python.el does not seem to work Date: Sun, 03 May 2009 10:42:17 -0400 Message-ID: <87skjmqmd2.fsf@cyd.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > I've ran inferior Python from both 23.0.90 and today's (2009-02-03) > CVS version. Python-load-file (C-c C-l) does not seem to do anything > in either. It seems to work for me, using the following recipe: touch foo.py emacs -Q foo.py C-c C-l RET C-x b *Python* RET >>> foo.__name__ 'foo' >>> Do you see something different? From mhuhtala@abo.fi Sun May 3 09:26:55 2009 Received: (at 2252) by emacsbugs.donarmstrong.com; 3 May 2009 16:26:56 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.0 required=4.0 tests=none autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from smtp2.abo.fi (smtp2.abo.fi [130.232.213.77]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n43GQpCf018043 for <2252@emacsbugs.donarmstrong.com>; Sun, 3 May 2009 09:26:53 -0700 Received: from volvox1.sbl.abo.fi (volvox.abo.fi [130.232.209.20]) by smtp2.abo.fi (8.14.3/8.12.9) with ESMTP id n43GQmNj018325; Sun, 3 May 2009 19:26:49 +0300 From: Mikko Huhtala MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18941.50632.623934.109309@volvox1.sbl> Date: Sun, 3 May 2009 19:26:48 +0300 To: Chong Yidong Cc: 2252@debbugs.gnu.org Subject: Re: python-load-file in python.el does not seem to work In-Reply-To: <87skjmqmd2.fsf@cyd.mit.edu> References: <87skjmqmd2.fsf@cyd.mit.edu> X-Mailer: VM 8.0.9 under Emacs 22.1.1 (i386-redhat-linux-gnu) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (smtp2.abo.fi [130.232.213.77]); Sun, 03 May 2009 19:26:49 +0300 (EEST) X-Virus-Scanned: by foxy.abo.fi (foxy.abo.fi: Sun May 3 19:26:49 2009) X-Scanned-By: MIMEDefang 2.64 on 130.232.213.77 Chong Yidong writes: > It seems to work for me, using the following recipe: You're right, it does work for me, too. The difference with my previous test is that I started inferior Python first and loaded the file after that. In Emacs 22, the file is loaded into the running inferior Python session, but in 23 a new Python session is initialized. Silly me did not even notice the second inferior Python buffer. I tried to use the one I had open in a window, which obviously didn't get the loaded file. Further C-c C-l commands do the right thing and load the file into the same running Python session. I'm assuming that this new behaviour is by design? I suppose it is more logical that what Emacs 22 does, but it might trip some old users. If the new behaviour is what the developers intended, then this should be closed as 'not a bug'. From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 22 21:02:02 2010 Received: (at control) by debbugs.gnu.org; 23 Aug 2010 01:02:02 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OnLQH-0001jo-Rp for submit@debbugs.gnu.org; Sun, 22 Aug 2010 21:02:02 -0400 Received: from pantheon-po23.its.yale.edu ([130.132.50.117]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OnLQG-0001jh-1T for control@debbugs.gnu.org; Sun, 22 Aug 2010 21:02:00 -0400 Received: from furry (adsl-99-109-22-209.dsl.wlfrct.sbcglobal.net [99.109.22.209]) (authenticated bits=0) by pantheon-po23.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o7N13GsD002783 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sun, 22 Aug 2010 21:03:16 -0400 Received: by furry (Postfix, from userid 1000) id A4A5816D402; Sun, 22 Aug 2010 21:03:15 -0400 (EDT) From: Chong Yidong To: control@debbugs.gnu.org Subject: close 2252 Date: Sun, 22 Aug 2010 21:03:15 -0400 Message-ID: <87pqxannsc.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-Spam-Score: -2.5 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.5 (--) close 2252 thanks From unknown Sun Aug 10 12:54:41 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 20 Sep 2010 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator