Steve Dower <[email protected]> added the comment:
`sys.platform` is the value that reflects how Python was compiled - `sys.platform == 'win32'` means compiled for Windows. And since this issue is related to compilation, it makes the most sense to use sys. (`os.name` is also based on compilation, but it really only reflects the POSIX implementation in use, which is why sys is better.) ---------- _______________________________________ Python tracker <[email protected]> <https://bugs.python.org/issue25172> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
