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 r.david.murray
Recipients docs@python, pythonhacker, r.david.murray, vstinner
Date 2015-03-24.14:26:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1427207184.34.0.771170865569.issue23747@psf.upfronthosting.co.za>
In-reply-to
Content
It is a deliberate choice because the functions accept default values to be returned if the actual values cannot be determined, and because it is easier therefore to write cross-platform scripts if the functions do *not* raise an error when called on the "wrong" platform.  There are other functions in the platform module to use to determine which platform you are on.

Agreed that the fact that they work is currently documented only by implication for those familiar with our doc style (that is, there are no "avaiability" tags, implying they are available on all platforms).  This should be corrected, probably in an introductory paragraph (which will be overlooked by most people reading the docs :)
History
Date User Action Args
2015-03-24 14:26:24r.david.murraysetrecipients: + r.david.murray, vstinner, pythonhacker, docs@python
2015-03-24 14:26:24r.david.murraysetmessageid: <1427207184.34.0.771170865569.issue23747@psf.upfronthosting.co.za>
2015-03-24 14:26:24r.david.murraylinkissue23747 messages
2015-03-24 14:26:24r.david.murraycreate