[Python-bugs-list] Python 1.6a1 - Misc/python-mode.el not updated? (PR#264)

François Pinard pinard@iro.umontreal.ca
03 Apr 2000 14:15:05 -0400


Skip Montanaro <skip@mojam.com> écrit:

>     François> File `Misc/python-mode.el' still has the problem that a
>     François> region, part of a some bigger structure, may not be fed to the
>     François> interpreter unless it is left-justified first.  It is
>     François> cumbersome having to explicitly left-justify a region for
>     François> sending it, every time, and then undoing the
>     François> left-justification back in its normal place once sent.

> Wouldn't it be easier to have python-mode simply insert

> if 1:

> in front of any indented block of code being sent to the interpreter?

It might work indeed.  But given that the patch exists for doing it neatly,
why not just do it neatly?  (The patch also avoids some spurious disk
accesses when these are not needed.)  In any case, I do not mind much,
as long as something is done about it, so Python mode gets more useful.

-- 
François Pinard   http://www.iro.umontreal.ca/~pinard