[issue21313] Py_GetVersion() is broken when using mqueue and a long patch name

2016-06-08 Thread Martin Panter
Martin Panter added the comment: Closing now that platform._sys_version() can tolerate the truncated version info. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue21313] Py_GetVersion() is broken when using mqueue and a long patch name

2016-06-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset b86e259271b3 by Martin Panter in branch '2.7': Issue #21313: Tolerate truncated buildinfo in sys.version https://hg.python.org/cpython/rev/b86e259271b3 New changeset 4deec876db0d by Martin Panter in branch '3.5': Issue #21313: Tolerate truncated

[issue21313] Py_GetVersion() is broken when using mqueue and a long patch name

2016-05-15 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___

[issue21313] Py_GetVersion() is broken when using mqueue and a long patch name

2016-05-12 Thread Martin Panter
Martin Panter added the comment: >>> Py_GetBuildInfo = pythonapi.Py_GetBuildInfo >>> Py_GetBuildInfo.restype = c_char_p >>> Py_GetBuildInfo() # Not truncated 'qbase qtip subprocess-stderr_redirect_with_no_stdout_redirect-2.diff tip:0b641285389d+, May 13 2016, 02:10:26' Demo of my problem with

[issue21313] Py_GetVersion() is broken when using mqueue and a long patch name

2016-05-12 Thread Martin Panter
Martin Panter added the comment: Currently Py_GetBuildInfo() just returns a long untruncated string. Perhaps it would be safer to leave that as it is, and just make the parsing in the “platform” module more tolerant. What do you think? I never really cared about the details in

[issue21313] Py_GetVersion() is broken when using mqueue and a long patch name

2015-03-22 Thread Mark Lawrence
Mark Lawrence added the comment: Any comments on the proposal to restrict the length of the returned string from Py_GetBuildInfo() to 80 characters? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21313

[issue21313] Py_GetVersion() is broken when using mqueue and a long patch name

2014-04-19 Thread Eric Snow
New submission from Eric Snow: Py_GetVersion() (in Python/getversion.c) builds the version string returned by sys.version: PyOS_snprintf(version, sizeof(version), %.80s (%.80s) %.80s, PY_VERSION, Py_GetBuildInfo(), Py_GetCompiler()); In turn, Py_GetBuildInfo() (in