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.

classification
Title: platform : a boolean to know easily when a system is posix
Type: enhancement Stage: resolved
Components: Library (Lib) Versions: Python 3.3
process
Status: closed Resolution: rejected
Dependencies: Superseder:
Assigned To: Nosy List: brian.curtin, exarkun, fgallaire
Priority: normal Keywords:

Created on 2010-09-28 00:34 by fgallaire, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
platform_isposix_boolean.py fgallaire, 2010-09-28 00:34 Patch for the platform module (new boolean isposix).
Messages (3)
msg117495 - (view) Author: Florent Gallaire (fgallaire) * Date: 2010-09-28 00:34
Hi,

The platform module could provide a boolean to know easily if a system is posix or not.

The expected result, when the system is posix :

>>> import platform
>>> platform.isposix
True

otherwise :

>>> import platform
>>> platform.isposix
False

Here is a patch to do so. It also provides an update for the platform
documentation and a test case.

Best regards

Florent Gallaire
msg117497 - (view) Author: Jean-Paul Calderone (exarkun) * (Python committer) Date: 2010-09-28 00:37
It could, but why introduce this redundancy with `os.name`?
msg117499 - (view) Author: Brian Curtin (brian.curtin) * (Python committer) Date: 2010-09-28 00:47
I second what Jean-Paul said. os.name is well established and I don't think a second way to get the same information is needed.

Thanks for the suggestion and patch, Florent.
History
Date User Action Args
2022-04-11 14:57:07adminsetgithub: 54175
2010-09-28 00:47:05brian.curtinsetstatus: open -> closed

nosy: + brian.curtin
messages: + msg117499

resolution: rejected
stage: resolved
2010-09-28 00:37:56exarkunsetnosy: + exarkun
messages: + msg117497
2010-09-28 00:34:43fgallairecreate