Package peppy :: Package plugins :: Module python_mode :: Class IDLEElectricReturnMixin
[frames] | no frames]

Class IDLEElectricReturnMixin

      object --+    
               |    
debug.debugmixin --+
                   |
                  IDLEElectricReturnMixin
Known Subclasses:

Instance Methods
 
findIndent(self, linenum, extra=None)
Find what indentation of the line should be based on previous lines

Inherited from object: __delattr__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Methods

Inherited from debug.debugmixin: dprint

Class Variables

Inherited from debug.debugmixin: debuglevel

Properties

Inherited from object: __class__

Method Details

findIndent(self, linenum, extra=None)

 

Find what indentation of the line should be based on previous lines

Gets indentation of what the line containing pos should be, not taking into account any dedenting as a result of compound blocks like else, finally, etc.

linenum: line number to find indentation

extra: include extra syntactic info as a result of the parsing; whether the previous block included a return and was dedented, for instance.