Default indentation of 4 columns
pinard at iro.umontreal.ca
Mon Nov 1 20:01:01 EST 1999
Michael Hudson <mwh21 at cam.ac.uk> writes:
> It hadn't occurred to me before, but one `solution' would be to chuck
> another space between `if' and `(', like so:
> def r():
> if (long_condition
> and other_condition):
> return ineteresting_stuff
> Not especially natural, but it might just work...
Yes. Not bad! :-) Thanks for the suggestion.
P.S. - Thanks to Emile van Sebille <emile at fenx.com> for sharing his idea:
> How about :
> for file_name, line_number, function_name, python_text in frames:
> if (function_name not in ('_', '<')
> and function_name not in transparent_functions
> name = os.path.basename(file_name)
> if name not in transparent_files:
> return name, line_number
> At least here, the '):' is clear.
It was the next best suggestion (not raising fights with Python Emacs mode).
I did try it a few times, and I'm not sure I'll easily tame myself to it.
François Pinard http://www.iro.umontreal.ca/~pinard
More information about the Python-list