17
17
section.
18
18
19
19
20
- .. note ::
21
-
22
- Calling a platform-specific method on a mismatched platform will return their
23
- default values, such as a tuple with empty string values.
24
-
25
20
26
21
Cross Platform
27
22
--------------
@@ -145,7 +140,7 @@ Cross Platform
145
140
146
141
.. function :: release()
147
142
148
- Returns the system's release, e.g. ``'2.2.0' `` or ``'NT' `` An empty string is
143
+ Returns the system's release, e.g. ``'2.2.0' `` or ``'NT' ``. An empty string is
149
144
returned if the value cannot be determined.
150
145
151
146
@@ -182,7 +177,7 @@ Cross Platform
182
177
Entries which cannot be determined are set to ``'' ``.
183
178
184
179
.. versionchanged :: 3.3
185
- Result changed from a tuple to a namedtuple.
180
+ Result changed from a tuple to a :func: ` ~collections. namedtuple` .
186
181
187
182
188
183
Java Platform
@@ -207,7 +202,9 @@ Windows Platform
207
202
208
203
Get additional version information from the Windows Registry and return a tuple
209
204
``(release, version, csd, ptype) `` referring to OS release, version number,
210
- CSD level (service pack) and OS type (multi/single processor).
205
+ CSD level (service pack) and OS type (multi/single processor). Values which
206
+ cannot be determined are set to the defaults given as parameters (which all
207
+ default to ``'' ``).
211
208
212
209
As a hint: *ptype * is ``'Uniprocessor Free' `` on single processor NT machines
213
210
and ``'Multiprocessor Free' `` on multi processor machines. The *'Free' * refers
@@ -217,9 +214,9 @@ Windows Platform
217
214
218
215
.. function :: win32_edition()
219
216
220
- Returns a string representing the current Windows edition. Possible
221
- values include but are not limited to `` 'Enterprise' ``, `` 'IoTUAP' ``,
222
- ``'ServerStandard' ``, and ``'nanoserver' ``.
217
+ Returns a string representing the current Windows edition, or `` None `` if the
218
+ value cannot be determined. Possible values include but are not limited to
219
+ ``'Enterprise' ``, `` 'IoTUAP' ``, `` ' ServerStandard' ``, and ``'nanoserver' ``.
223
220
224
221
.. versionadded :: 3.8
225
222
0 commit comments