A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2017-July/148762.html below:

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

[Python-Dev] Am I allowed to use C++-style // comments? [Python-Dev] Am I allowed to use C++-style // comments?Devin Jeanpierre jeanpierreda at gmail.com
Wed Jul 26 01:04:12 EDT 2017
I actually realized right after I sent this that I am writing C++, so
maybe it's a moot point. (Still trying to figure out how to use C for
this, but it's an optional extension module only exposed for testing,
so maybe it really doesn't matter.)

Context is https://github.com/python/cpython/pull/2878

-- Devin

On Tue, Jul 25, 2017 at 9:59 PM, Devin Jeanpierre
<jeanpierreda at gmail.com> wrote:
> 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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4