gh-95415: Make availability directive consistent (GH-95416)#95416
Conversation
1c52b29 to
1e6b8cf
Compare
encukou
left a comment
There was a problem hiding this comment.
Big +1 on the idea, some nitpicks:
|
Thanks @tiran for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11. |
|
Sorry, @tiran, I could not cleanly backport this to |
|
GH-95438 is a backport of this pull request to the 3.11 branch. |
ezio-melotti
left a comment
There was a problem hiding this comment.
A bit late to the party since the PR already got merged, but here is my review.
| .. availability:: most Unix platforms, possibly others. | ||
| .. availability:: Unix. | ||
|
|
||
| most Unix platforms. |
There was a problem hiding this comment.
| most Unix platforms. | |
| Most Unix platforms. |
| has been terminated. | ||
|
|
||
| .. availability:: Requires :func:`get_native_id` function. | ||
| .. availability:: Windows, FreeBSD, Linux, macOS, OpenBSD, NetBSD, AIX, DragonFlyBSD. |
There was a problem hiding this comment.
I would keep the previous sentence under the list of platforms.
| known_platforms = frozenset({ | ||
| "AIX", "Android", "BSD", "DragonFlyBSD", "Emscripten", "FreeBSD", | ||
| "Linux", "NetBSD", "OpenBSD", "POSIX", "Solaris", "Unix", "VxWorks", | ||
| "WASI", "Windows", "macOS", | ||
| # libc | ||
| "BSD libc", "glibc", "musl", | ||
| # POSIX platforms with pthreads | ||
| "pthreads", | ||
| }) |
There was a problem hiding this comment.
| known_platforms = frozenset({ | |
| "AIX", "Android", "BSD", "DragonFlyBSD", "Emscripten", "FreeBSD", | |
| "Linux", "NetBSD", "OpenBSD", "POSIX", "Solaris", "Unix", "VxWorks", | |
| "WASI", "Windows", "macOS", | |
| # libc | |
| "BSD libc", "glibc", "musl", | |
| # POSIX platforms with pthreads | |
| "pthreads", | |
| }) | |
| known_platforms = frozenset({ | |
| "AIX", "Android", "BSD", "DragonFlyBSD", "Emscripten", "FreeBSD", | |
| "Linux", "NetBSD", "OpenBSD", "POSIX", "Solaris", "Unix", "VxWorks", | |
| "WASI", "Windows", "macOS", | |
| # libc | |
| "BSD libc", "glibc", "musl", | |
| # POSIX platforms with pthreads | |
| "pthreads", | |
| }) |
| ``socket.gethostbyaddr(socket.gethostname())``. | ||
|
|
||
| .. availability:: recent flavors of Unix. | ||
| .. availability:: Unix. |
There was a problem hiding this comment.
Should these get a note like Might not be available on less recent flavors of Unix. or Might not be available on some flavors of Unix.? Even better would be to be more specific (e.g. Not available on Unix flavors that ...).
There was a problem hiding this comment.
uname is available on all Unix-like platforms that we support. It was standardized in IEEE Std 1003.1-2001, https://pubs.opengroup.org/onlinepubs/009604599/functions/uname.html . Every POSIX-like OS released in the last 20 years should have it.
Uh oh!
There was an error while loading. Please reload this page.