Petr Viktorin added the comment:

As it says in the docs, a "logical line that contains only spaces, tabs, 
formfeeds and possibly a comment, is ignored."

If you write:

if a=b:
    statement
# Comment
    another statement

both statements belong to the "if" block.
In your example, the comment is similarly part of the "if" block, so the dedent 
comes after it.

----------
nosy: +encukou

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue25079>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to