[Python-bugs-list] [ python-Bugs-799369 ] documentation for sys.platform is unclear

SourceForge.net noreply at sourceforge.net
Tue Sep 2 14:16:15 EDT 2003


Bugs item #799369, was opened at 2003-09-02 22:16
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=799369&group_id=5470

Category: Documentation
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Bram Moolenaar (vimboss)
Assigned to: Nobody/Anonymous (nobody)
Summary: documentation for sys.platform is unclear

Initial Comment:
The use of sys.platform is very risky, because it is
not at all clear what the possible values are.  For
example, on Mac OS X "darwin" is used, but this can
only be discovered by trying it out and asking Jack
when another value will be used.

Another problem is that the examples given include a
number, which suggests that an OS version number might
be included here.  Is that only a major version number?
 And why doesn't Mac OS X report "macosx10.2"?

Suggestion: Add a list of known values and for what
platforms they are used.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=799369&group_id=5470



More information about the Python-bugs-list mailing list