This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author kurochan
Recipients kurochan
Date 2020-11-04.06:01:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1604469715.55.0.889552705694.issue42257@roundup.psfhosted.org>
In-reply-to
Content
Currently, `platform.libc_ver()` doesn't consider in case of `executable` variable is an empty string.
However, with Python 3.8, the following code could pass an empty string `executable` to the `platform.libc_ver()` function.

https://github.com/python/cpython/blob/efc782d29e229924076ffb6645a72f26242fb3ef/Lib/platform.py#L1205
https://docs.python.org/3/library/sys.html#sys.executable

Because the `sys.executable` could return an empty string, so I would like to add the empty string handler.

https://github.com/python/cpython/blob/efc782d29e229924076ffb6645a72f26242fb3ef/Lib/platform.py#L174

Or please also merge the following PR to Python 3.8.
https://github.com/python/cpython/pull/14418
History
Date User Action Args
2020-11-04 06:01:55kurochansetrecipients: + kurochan
2020-11-04 06:01:55kurochansetmessageid: <1604469715.55.0.889552705694.issue42257@roundup.psfhosted.org>
2020-11-04 06:01:54kurochanlinkissue42257 messages
2020-11-04 06:01:54kurochancreate