[issue29215] pyport.h uses non C90-style comment

2017-01-10 Thread Xiang Zhang
Xiang Zhang added the comment: About the comment style confliction, I opened an issue on Github and assigned to you Benjamin. https://github.com/python/peps/issues/176 -- ___ Python tracker ___

[issue29215] pyport.h uses non C90-style comment

2017-01-09 Thread Benjamin Peterson
Benjamin Peterson added the comment: C99 is required to build or include Python headers since 3.6. PEP 7 could be clearer. The bullet about C99 is meant to override for 3.6 other directives such as the comment prohibition. -- resolution: -> not a bug status: open -> closed __

[issue29215] pyport.h uses non C90-style comment

2017-01-09 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue29215] pyport.h uses non C90-style comment

2017-01-09 Thread Xiang Zhang
Xiang Zhang added the comment: I found that conflict once but lost it then. :-( > Or should I just assume that all headers are henceforth C99 and any wrapping > code should also be C99? I am not sure. :-( Nosy other experts. :-) -- nosy: +haypo, serhiy.storchaka _

[issue29215] pyport.h uses non C90-style comment

2017-01-09 Thread Sander Vrijders
Sander Vrijders added the comment: Okay, a bit conflicted about the following though. The changelog refers to PEP7. This document indeed states that Python versions greater than or equal to 3.6 use C89 with several select C99 features, such as C++-style line comments. But then below that it ha

[issue29215] pyport.h uses non C90-style comment

2017-01-09 Thread Xiang Zhang
Xiang Zhang added the comment: That's a change in 3.6, see https://docs.python.org/3/whatsnew/3.6.html#build-and-c-api-changes. -- nosy: +xiang.zhang ___ Python tracker ___

[issue29215] pyport.h uses non C90-style comment

2017-01-09 Thread Sander Vrijders
New submission from Sander Vrijders: I am writing C90 compliant code and am wrapping my C headers with SWIG, which includes python3.6m/pyport.h. I've told my compiler to report all warnings as errors. Compilation fails with the following error: ``` /usr/include/python3.6m/pyport.h:40:1: error: