Zachary Ware added the comment: Triple-quoted strings are strings, not multi-line comments, though people do abuse them for that purpose sometimes. Changing this behavior would be a huge change for next to no benefit, so I'm closing the issue.
If you insist on using a triple-quoted string as a comment (which I repeat, it is not; comments are ignored by the compiler, while triple-quoted strings are treated just as any other string literal by the compiler), you can work around this by using a 'raw' string literal: r""" dir \\dept.example.com\user """ ---------- nosy: +zach.ware resolution: -> not a bug stage: -> resolved status: open -> closed _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29285> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com