[New-bugs-announce] [issue43278] Inconsistent behavior of Py_GetCompiler()
report at bugs.python.org
Sat Feb 20 12:02:21 EST 2021
New submission from Joseph Shen <joseph.smeng at gmail.com>:
The function Py_GetCompiler() return the version info with a leading '\n' when build with GCC/clang, while without this on other compilers. This inconsistent make the REPL print the 'welcome message' quit different, which I think is not we expect.
>From the snapshot images, we can see, when compiler with MSVC, the 'welcome message' has two lines, but with GCC it is 3 lines, which two lines is what expected.
Patch is given in the github rp, thanks for review.
components: C API
title: Inconsistent behavior of Py_GetCompiler()
Added file: https://bugs.python.org/file49824/explorer_lN3ARB7gnj.png
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce