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 p.lavarre@ieee.org
Recipients jafo, janssen, lemburg, p.lavarre@ieee.org
Date 2007-09-18.18:51:32
SpamBayes Score 0.025069
Marked as misclassified No
Message-id <1190141493.02.0.349689865426.issue1082@psf.upfronthosting.co.za>
In-reply-to
Content
--- USAGE:

I agree we should let people in future write:

if not platform.system('Windows'):

rather than:

if not (platform.system() in ('Microsoft', 'Windows')):

now that our people can no longer rely on Python in Vista correctly 
understanding the plain human intent of such code fragments as:

if platform.system() != 'Windows':

--- DRAFT SPEC:

platform.system(name = None) returns the system name if name is None, 
else returns the system name if name is a well-known alias of the 
system name, else returns None.

The string 'Mac OS X' is a well-known alias for the system 'Darwin'.

The string 'Windows' is a well-known alias for the system 'Microsoft' 
in 2.5.1 Python on Vista.

The system name is itself a well-known alias of the system name. For 
example, 'Darwin' is a well-known alias of the 'Darwin' system that is 
sold as the kernel of 'Mac OS X'.

Etc.
History
Date User Action Args
2007-09-18 18:51:33p.lavarre@ieee.orgsetspambayes_score: 0.025069 -> 0.025069
recipients: + p.lavarre@ieee.org, lemburg, jafo, janssen
2007-09-18 18:51:33p.lavarre@ieee.orgsetspambayes_score: 0.025069 -> 0.025069
messageid: <1190141493.02.0.349689865426.issue1082@psf.upfronthosting.co.za>
2007-09-18 18:51:33p.lavarre@ieee.orglinkissue1082 messages
2007-09-18 18:51:32p.lavarre@ieee.orgcreate