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

SourceForge.net noreply at sourceforge.net
Sat Sep 6 15:23:24 EDT 2003


Bugs item #799369, was opened at 2003-09-02 13:16
Message generated for change (Comment added) made by bcannon
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.

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

>Comment By: Brett Cannon (bcannon)
Date: 2003-09-06 14:23

Message:
Logged In: YES 
user_id=357491

How often are new platforms supported?  From my short time on 

python-dev I would say not very often.  So listing all known 

platforms shouldn't suffer *too* much from bit rot, but it is 

something to consider before going forward with this.

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

Comment By: Jack Jansen (jackjansen)
Date: 2003-09-05 06:45

Message:
Logged In: YES 
user_id=45365

A first step would be to document that for Unix the value is based 

on the information returned by "uname" *at the time of building 

Python*, mapped to lowercase and with some cruft removed.



For other platforms for which the value is known (Windows, 

MacOS9) we could document the actual values.

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

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