[Python-Dev] Am I allowed to use C++-style // comments?

Devin Jeanpierre jeanpierreda at gmail.com
Wed Jul 26 00:59:10 EDT 2017


https://www.python.org/dev/peps/pep-0007/ says two things:

> Python versions greater than or equal to 3.6 use C89 with several select C99 features:
> [...]
> C++-style line comments

and also:

> Never use C++ style // one-line comments.

Which is it?

-- Devin


More information about the Python-Dev mailing list