[wingide-users] Re: wingide-users Digest, Vol 35, Issue 14
Wingware Support
support at wingware.com
Thu Mar 22 18:29:56 MDT 2007
Mike Bernson wrote:
> I then try tab for indent the next line correct place.
>
> def name(foo):
> # if this is here I can not indent the next line.
> if foo:
> print foo tree
We do pretty much assume that comments will be indented rather than
not. For the above case, I'd strongly recommend using docstrings
instead, and those have to be indented:
def name(foo):
"""this is the docstring, instead of a comment"""
if foo:
print foo tree
Stephan Deibel
Wingware | Python IDE
Advancing Software Development
www.wingware.com
More information about the wingide-users
mailing list