Use of a variable in parent loop
Grant Edwards
grant.b.edwards at gmail.com
Mon Sep 28 13:40:04 EDT 2020
On 2020-09-27, Terry Reedy <tjreedy at udel.edu> wrote:
> On 9/26/2020 3:36 PM, Stephane Tougard via Python-list wrote:
>> On 2020-09-26, Terry Reedy <tjreedy at udel.edu> wrote:
>>> Noise. Only 'pass' when there is no other code.
>>
>> Why ?
>>
>> I use pass and continue each time to break a if or a for because emacs
>> understands it and do not break the indentation.
Huh? What is emacs doing to "break the indentation"?
>> Is there any other instruction to end a if than pass and ensure Emacs
>> does not break the indentation during a copy paste or an indent-region ?
>
> Emacs should come with python.el or python-mode.el defining a
> python-mode. Are you using it? I presume it understands python block
> structure without extra passes.
It works for me.
> emacs with python-mode has been and likely still is used by some
> experienced python programmers.
I've been usnig emacs in python-mode for almost 20 years. I've never
had any problems with.
--
Grant
More information about the Python-list
mailing list