[issue28578] '\n' escape character print before the Py_GetCompiler version

2016-11-01 Thread Amit Ghadge
Amit Ghadge added the comment: SilentGhost, Thanks for your response. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue28578] '\n' escape character print before the Py_GetCompiler version

2016-11-01 Thread SilentGhost
SilentGhost added the comment: sys.version is a string, it's intended to be printed and it needs \n to be able to output two lines. I'm not sure what exactly problem you're having, but if you want special characters like \n not to show in output, you should use >>> print(sys.version) I'm goin

[issue28578] '\n' escape character print before the Py_GetCompiler version

2016-11-01 Thread Amit Ghadge
Amit Ghadge added the comment: Actually, I run this in Python terminal, >>> import sys >>> import sys.version I also have attached patch, Please let me that is correct or not? -- keywords: +patch Added file: http://bugs.python.org/file45302/getcompiler.c.patch

[issue28578] '\n' escape character print before the Py_GetCompiler version

2016-11-01 Thread SilentGhost
SilentGhost added the comment: And how exactly are you "hitting sys.version command"? -- nosy: +SilentGhost versions: -Python 3.4 ___ Python tracker ___

[issue28578] '\n' escape character print before the Py_GetCompiler version

2016-11-01 Thread Amit Ghadge
New submission from Amit Ghadge: When I hit sys.version command on Linux shell the Py_GetCompiler version print '\n' character like; '3.7.0a0 (default:7aa001a48120, Nov 1 2016, 13:53:25) \n[GCC 5.3.1 20160406 (Red Hat 5.3.1-6)]' And When I launch python, Py_GetCompiler line print to the next

[issue28578] '\n' escape character print before the Py_GetCompiler version

2016-11-01 Thread Amit Ghadge
Changes by Amit Ghadge : -- nosy: amitgb14 priority: normal severity: normal status: open title: '\n' escape character print before the Py_GetCompiler version type: enhancement versions: Python 3.7 ___ Python tracker