From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.bugs Subject: bug#5756: 24.0.50; reloading files in python3 Date: Sun, 22 Aug 2010 19:51:52 -0400 Message-ID: <87mxsekxyf.fsf@stupidchicken.com> References: <64CCAC7D-54C4-45F7-BB72-7B9862EE5FC9@mac.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1282522170 11693 80.91.229.12 (23 Aug 2010 00:09:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 23 Aug 2010 00:09:30 +0000 (UTC) Cc: 5756@debbugs.gnu.org To: Alex Harsanyi Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Aug 23 02:09:27 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OnKbI-0007BZ-7C for geb-bug-gnu-emacs@m.gmane.org; Mon, 23 Aug 2010 02:09:20 +0200 Original-Received: from localhost ([127.0.0.1]:42946 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OnKbH-0007jr-DX for geb-bug-gnu-emacs@m.gmane.org; Sun, 22 Aug 2010 20:09:19 -0400 Original-Received: from [140.186.70.92] (port=39968 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OnKbB-0007jg-Lh for bug-gnu-emacs@gnu.org; Sun, 22 Aug 2010 20:09:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OnKbA-0003hu-C6 for bug-gnu-emacs@gnu.org; Sun, 22 Aug 2010 20:09:13 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54904) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OnKbA-0003hp-Ao for bug-gnu-emacs@gnu.org; Sun, 22 Aug 2010 20:09:12 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OnKJZ-0008BE-Kv; Sun, 22 Aug 2010 19:51:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <64CCAC7D-54C4-45F7-BB72-7B9862EE5FC9@mac.com> Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 22 Aug 2010 23:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 5756 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 5756-submit@debbugs.gnu.org id=B5756.128252104031416 (code B ref 5756); Sun, 22 Aug 2010 23:51:01 +0000 Original-Received: (at 5756) by debbugs.gnu.org; 22 Aug 2010 23:50:40 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OnKJD-0008Af-JJ for submit@debbugs.gnu.org; Sun, 22 Aug 2010 19:50:39 -0400 Original-Received: from pantheon-po45.its.yale.edu ([130.132.50.79]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OnKJB-0008Aa-Bv for 5756@debbugs.gnu.org; Sun, 22 Aug 2010 19:50:37 -0400 Original-Received: from furry (173-9-75-145-NewEngland.hfc.comcastbusiness.net [173.9.75.145]) (authenticated bits=0) by pantheon-po45.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o7MNproC006823 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sun, 22 Aug 2010 19:51:53 -0400 Original-Received: by furry (Postfix, from userid 1000) id 094F416D402; Sun, 22 Aug 2010 19:51:53 -0400 (EDT) X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 22 Aug 2010 19:51:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:39711 Archived-At: > Reloading a python file into the current interpreter using C-c C-l fails > for python3. To test it, create a file hello.py with the contents: > > def Hello(): > print ("Hello World"); > > and load it into the python interpreter using C-c C-l. Modify the file, > than try to load it again. The python interpreter will fail with an > exception about reload() not being defined. Thanks. I've checked in the fix you suggested into the emacs-23 branch. > I'm not sure if it is correct if emacs3.py is re-generated from > emacs2.py as the comment in the header states. I don't see any better solution, so I've removed the comment.