special editor support for indentation needed.

Aahz aahz at pythoncraft.com
Sun Nov 16 18:57:22 CET 2008


In article <mailman.4013.1226696904.3487.python-list at python.org>,
Eric S. Johansson <esj at harvee.org> wrote:
>
>here's an example of the problem:
>class foo( object):
>    def cat(self)
>	self.x=1
>	def dog
>            self.x=2
>
>this is legal Python but it's not what you need 99% of the time.  There is no
>cue to the editor to tell it to outdent to give me what I really want which is:
>
>class foo( object):
>    def cat(self)
>	self.x=1
>    def dog
>        self.x=2
>
>so there should be a mechanism for saying "indent the level of the previous
>definition".  

The command word you want is "dedent".

signed, deaf person with cochlear implant
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"It is easier to optimize correct code than to correct optimized code."
--Bill Harlan



More information about the Python-list mailing list