[New-bugs-announce] [issue25536] use sys.platform instead of os.name in asyncio docs consistently
Akira Li
report at bugs.python.org
Mon Nov 2 11:55:19 EST 2015
New submission from Akira Li:
asyncio code uses "sys.platform == 'win32'" to detect OS.
asyncio docs use both os.name and sys.platform.
As far as I can tell there is no *practical* difference
between "os.name == 'nt" and "sys.platform == 'win32'"
for choosing asyncio.ProactorEventLoop()
I've attached a patch that replaces all os.name occurrences
in asyncio docs with sys.platform.
----------
components: asyncio
files: doc-asyncio-os.name->sys.platform.patch
keywords: patch
messages: 253931
nosy: akira, gvanrossum, haypo, yselivanov
priority: normal
severity: normal
status: open
title: use sys.platform instead of os.name in asyncio docs consistently
versions: Python 3.4, Python 3.5, Python 3.6
Added file: http://bugs.python.org/file40930/doc-asyncio-os.name->sys.platform.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25536>
_______________________________________
More information about the New-bugs-announce
mailing list