In TextMate 1.5.10 r1623 you get small arrows that allow you to reset method blocks:

Unfortunately, if you have a multi-line Python comment, it will not recognize it, so you cannot flush it:
def foo(): """ How do I fold these comments? """ print "bar"
TextMate has this on its website on how to set up folding: http://manual.macromates.com/en/navigation_overview#customizing_foldings
... but I'm not good enough in regular expression to do anything. TextMate uses the Oniguruma regex API, and I use Python.tmbundle by default, updated to the latest version through GetBundles.
Does anyone have an idea on how to do this? Thanks in advance for your help! :)
Adding regex default values foldingStartMarker and foldingStopMarker for Python.tmbundle under the Python language in the package editor:
foldingStartMarker = '^\s*(def|class)\s+([.a-zA-Z0-9_ <]+)\s*(\((.*)\))?\s*:|\{\s*$|\(\s*$|\[\s*$|^\s*"""(?=.)(?!.*""")'; foldingStopMarker = '^\s*$|^\s*\}|^\s*\]|^\s*\)|^\s*"""\s*$';
source share