GNU bug report logs - #25025
python-shell-calculate-command is wrong

Previous Next

Package: emacs;

Reported by: Fabrice Popineau <fabrice.popineau <at> gmail.com>

Date: Fri, 25 Nov 2016 06:26:01 UTC

Severity: normal

Tags: confirmed, fixed

Merged with 20744

Found in version 25.1

Fixed in version 26.1

Done: npostavs <at> users.sourceforge.net

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
To: npostavs <at> users.sourceforge.net
Cc: 25025 <at> debbugs.gnu.org
Subject: bug#25025: python-shell-calculate-command is wrong
Date: Mon, 28 Nov 2016 17:43:43 +0100

On 28.11.2016 15:15, npostavs <at> users.sourceforge.net wrote:
> Andreas Röhler <andreas.roehler <at> easy-emacs.de> writes:
>> Executing Python code via a shell might produce subtle bugs. See
>> https://bugs.launchpad.net/python-mode/+bug/550661
> We're talking about executing the python executable via a shell, not
> python code via a "python shell", which is something different.

Seeing the example was not clear, sorry. Just tried to you give a piece 
of code which would fail doing shell-commend-on-region.
Try print(u'\xA9') with python2. With python3 it works here. AFAIU the 
current python.el doesn't pipe to Python-code to exec through a shell - 
for related reasons.


>
>> Following the OP's suggestion seems reasonable. Just drop it at place
>> and see if something gets broken - wouldn't expect it.
> See https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25025#8 for why it
> would break.

Only see a question there, not a statement. BTW have no system of the 
OP's kind, can't check that.




This bug report was last modified 7 years and 276 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.