From unknown Sun Jun 15 08:37:51 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#4822 <4822@debbugs.gnu.org> To: bug#4822 <4822@debbugs.gnu.org> Subject: Status: run-python in progmodes/python.el hardcodes interpreter args Reply-To: bug#4822 <4822@debbugs.gnu.org> Date: Sun, 15 Jun 2025 15:37:51 +0000 retitle 4822 run-python in progmodes/python.el hardcodes interpreter args reassign 4822 emacs submitter 4822 Ole Laursen severity 4822 normal thanks From olau@iola.dk Wed Oct 28 09:30:21 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 28 Oct 2009 16:30:21 +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 lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n9SGUJAD030694 for ; Wed, 28 Oct 2009 09:30:21 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N3BPf-00089v-7t for bug-gnu-emacs@gnu.org; Wed, 28 Oct 2009 12:30:19 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N3BPa-00087X-5Y for bug-gnu-emacs@gnu.org; Wed, 28 Oct 2009 12:30:18 -0400 Received: from [199.232.76.173] (port=35100 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N3BPa-00087O-1R for bug-gnu-emacs@gnu.org; Wed, 28 Oct 2009 12:30:14 -0400 Received: from mail-yx0-f191.google.com ([209.85.210.191]:55959) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N3BPZ-0006a1-Pj for bug-gnu-emacs@gnu.org; Wed, 28 Oct 2009 12:30:13 -0400 Received: by yxe29 with SMTP id 29so808394yxe.14 for ; Wed, 28 Oct 2009 09:30:12 -0700 (PDT) MIME-Version: 1.0 Received: by 10.101.167.21 with SMTP id u21mr425946ano.56.1256747411871; Wed, 28 Oct 2009 09:30:11 -0700 (PDT) Date: Wed, 28 Oct 2009 17:30:11 +0100 Message-ID: Subject: run-python in progmodes/python.el hardcodes interpreter args From: Ole Laursen To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset=ISO-8859-1 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Hi! python.el hardcodes the arguments passed to the Python shell in run-python on line 1555. Suggested fix: use python-which-args which is defined in python.el (without documentation by the way). My problem: I'm trying to make the built-in Python repl work with Django (Ruby on Rails clone that's very popular in the Python community). With Django, you can get a shell by running python manage.py shell in the root of a project. It does some magic to setup things correctly. So I've written a small snippet to locate the manage.py file and use the above command if found, but this is completely defeated because run-python insists on appending -i which the manage.py script doesn't recognize. -- Ole Laursen http://www.iola.dk/ From olau@iola.dk Thu Oct 29 02:57:59 2009 Received: (at 4822) by emacsbugs.donarmstrong.com; 29 Oct 2009 09:58:00 +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 mail-yx0-f190.google.com (mail-yx0-f190.google.com [209.85.210.190]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n9T9vwr0011245 for <4822@emacsbugs.donarmstrong.com>; Thu, 29 Oct 2009 02:57:59 -0700 Received: by yxe28 with SMTP id 28so1528638yxe.19 for <4822@emacsbugs.donarmstrong.com>; Thu, 29 Oct 2009 02:57:53 -0700 (PDT) MIME-Version: 1.0 Received: by 10.101.25.19 with SMTP id c19mr782310anj.84.1256810272891; Thu, 29 Oct 2009 02:57:52 -0700 (PDT) Date: Thu, 29 Oct 2009 10:57:52 +0100 Message-ID: Subject: Fixing the bug doesn't help me anyway From: Ole Laursen To: 4822@debbugs.gnu.org Content-Type: text/plain; charset=ISO-8859-1 Hi, I still think it's a bug, but even when I fix it, I can't get my particular use case to work anyway. It turns out to be easier to replicate what "python manage.py shell" is doing inside Emacs by setting a couple of environment variables. So you might want to close the bug again. Sorry. -- Ole Laursen http://www.iola.dk/ From rgm@gnu.org Fri Oct 30 19:25:55 2009 Received: (at control) by emacsbugs.donarmstrong.com; 31 Oct 2009 02:25:55 +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.9 required=4.0 tests=AWL,ONEWORD,VALID_BTS_CONTROL autolearn=no 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.14.3/8.14.3/Debian-5) with ESMTP id n9V2PrDD031609 for ; Fri, 30 Oct 2009 19:25:54 -0700 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1N43f7-0001J6-9e; Fri, 30 Oct 2009 22:25:53 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19179.41008.952237.216417@fencepost.gnu.org> Date: Fri, 30 Oct 2009 22:25:52 -0400 From: Glenn Morris To: control Subject: control severity 4724 wishlist severity 4743 wishlist tags 4743 wontfix reassign 4759 emacs,ns reassign 4765 emacs,ns reassign 4774 emacs,ns severity 4680 minor severity 4833 wishlist severity 4829 minor reassign 4831 emacs,ns severity 4827 minor close 4821 close 4822 close 4778 severity 4804 wishlist reassign 4836 emacs,w32 From unknown Sun Jun 15 08:37:51 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 28 Nov 2009 15:24:13 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A long time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator