@@ -1422,6 +1422,7 @@ always available. Unless explicitly noted otherwise, all variables are read-only
14221422 AIX ``'aix' ``
14231423 Android ``'android' ``
14241424 Emscripten ``'emscripten' ``
1425+ FreeBSD ``'freebsd' ``
14251426 iOS ``'ios' ``
14261427 Linux ``'linux' ``
14271428 macOS ``'darwin' ``
@@ -1432,12 +1433,12 @@ always available. Unless explicitly noted otherwise, all variables are read-only
14321433
14331434 On Unix systems not listed in the table, the value is the lowercased OS name
14341435 as returned by ``uname -s ``, with the first part of the version as returned by
1435- ``uname -r `` appended, e.g. ``'sunos5' `` or `` 'freebsd8' `` , *at the time
1436- when Python was built *. Unless you want to test for a specific system
1437- version, it is therefore recommended to use the following idiom::
1436+ ``uname -r `` appended, e.g. ``'sunos5' ``, *at the time when Python was built *.
1437+ Unless you want to test for a specific system version, it is therefore
1438+ recommended to use the following idiom::
14381439
1439- if sys.platform.startswith('freebsd '):
1440- # FreeBSD -specific code here...
1440+ if sys.platform.startswith('sunos '):
1441+ # SunOS -specific code here...
14411442
14421443 .. versionchanged :: 3.3
14431444 On Linux, :data: `sys.platform ` doesn't contain the major version anymore.
@@ -1451,6 +1452,10 @@ always available. Unless explicitly noted otherwise, all variables are read-only
14511452 On Android, :data: `sys.platform ` now returns ``'android' `` rather than
14521453 ``'linux' ``.
14531454
1455+ .. versionchanged :: 3.14
1456+ On FreeBSD, :data: `sys.platform ` doesn't contain the major version anymore.
1457+ It is always ``'freebsd' ``, instead of ``'freebsd13' `` or ``'freebsd14' ``.
1458+
14541459 .. seealso ::
14551460
14561461 :data: `os.name ` has a coarser granularity. :func: `os.uname ` gives
0 commit comments