[New-bugs-announce] [issue43278] Inconsistent behavior of Py_GetCompiler()

Joseph Shen 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
files: explorer_lN3ARB7gnj.png
messages: 387417
nosy: josephsmeng
priority: normal
pull_requests: 23377
severity: normal
status: open
title: Inconsistent behavior of Py_GetCompiler()
type: behavior
Added file: https://bugs.python.org/file49824/explorer_lN3ARB7gnj.png

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43278>
_______________________________________


More information about the New-bugs-announce mailing list