Showing content from http://mail.python.org/pipermail/python-dev/attachments/20160805/9c8df32c/attachment.html below:
<div dir="ltr">Where did we finally land on this discussion? Do we want to update PEP 7 to say that starting in 3.6 we may use C99 features common to all supported compilers and list what those compilers are (i.e. gcc, clang, and MSVC)?<div><br><div class="gmail_quote"><div dir="ltr">On Wed, 8 Jun 2016 at 01:28 Victor Stinner <<a href="mailto:victor.stinner@gmail.com">victor.stinner@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I guess that as usual, we should use the "common denominator" of all<br>
compilers supported by CPython. For example, if MSVC doesn't support a<br>
feature, we should not use it in CPython.<br>
<br>
In practice, it's easy to check if a feature is supported or not: we<br>
have buildbots building Python at each commit. It was very common to<br>
get a compilation error only on MSVC when a variable was defined in<br>
the middle of a function. We are now using<br>
-Werror=declaration-after-statement with GCC because of MSVC!<br>
<br>
Maybe GCC has an option to ask for the subset of the C99 standard<br>
compatible with MSVC? Something like "-std=c99 -pedantic"?<br>
<br>
Note: I tried -pedantic, GCC emits a lot of warnings on code which<br>
looks valid and/or is protected with #ifdef for features specific to<br>
GCC like computed goto.<br>
<br>
Victor<br>
<br>
2016-06-07 21:45 GMT+02:00 Guido van Rossum <<a href="mailto:gvanrossum@gmail.com" target="_blank">gvanrossum@gmail.com</a>>:<br>
> We should definitely keep supporting MSVC.<br>
><br>
> --Guido (mobile)<br>
><br>
> On Jun 7, 2016 12:39 PM, "Sturla Molden" <<a href="mailto:sturla.molden@gmail.com" target="_blank">sturla.molden@gmail.com</a>> wrote:<br>
>><br>
>> Victor Stinner <<a href="mailto:victor.stinner@gmail.com" target="_blank">victor.stinner@gmail.com</a>> wrote:<br>
>><br>
>> > Is it worth to support a compiler that in 2016 doesn't support the C<br>
>> > standard released in 1999, 17 years ago?<br>
>><br>
>> MSVC only supports C99 when its needed for C++11 or some MS extension to<br>
>> C.<br>
>><br>
>> Is it worth supporting MSVC? If not, we have Intel C, Clang and Cygwin GCC<br>
>> are the viable options we have on Windows (and perhaps Embarcadero, but I<br>
>> haven't used C++ builder for a very long time). Even MinGW does not fully<br>
>> support C99, because it depends on Microsoft's CRT. If we think MSVC and<br>
>> MinGW are worth supporting, we cannot just use C99 indiscriminantly.<br>
>><br>
>> _______________________________________________<br>
>> Python-Dev mailing list<br>
>> <a href="mailto:Python-Dev@python.org" target="_blank">Python-Dev@python.org</a><br>
>> <a href="https://mail.python.org/mailman/listinfo/python-dev" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/python-dev</a><br>
>> Unsubscribe:<br>
>> <a href="https://mail.python.org/mailman/options/python-dev/guido%40python.org" rel="noreferrer" target="_blank">https://mail.python.org/mailman/options/python-dev/guido%40python.org</a><br>
><br>
><br>
> _______________________________________________<br>
> Python-Dev mailing list<br>
> <a href="mailto:Python-Dev@python.org" target="_blank">Python-Dev@python.org</a><br>
> <a href="https://mail.python.org/mailman/listinfo/python-dev" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/python-dev</a><br>
> Unsubscribe:<br>
> <a href="https://mail.python.org/mailman/options/python-dev/victor.stinner%40gmail.com" rel="noreferrer" target="_blank">https://mail.python.org/mailman/options/python-dev/victor.stinner%40gmail.com</a><br>
><br>
_______________________________________________<br>
Python-Dev mailing list<br>
<a href="mailto:Python-Dev@python.org" target="_blank">Python-Dev@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-dev" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/python-dev</a><br>
Unsubscribe: <a href="https://mail.python.org/mailman/options/python-dev/brett%40python.org" rel="noreferrer" target="_blank">https://mail.python.org/mailman/options/python-dev/brett%40python.org</a><br>
</blockquote></div></div></div>
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