-
-
Notifications
You must be signed in to change notification settings - Fork 30.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
clarifying Availability: Unix #55442
Comments
Hi, following up http://mail.python.org/pipermail/docs/2011-February/003083.html we have a chat on #python-dev on the topic, the situation is
It's enough for the conversation dump: ideas/suggestions? :) |
I like the footnote idea. I wonder if it would also be worth marking which functions are Posix (Availability: posix) and therefore likely to be available on all unix systems. |
Me too.
POSIX has optional APIs, hasn't it? |
Good point :( |
The "Notes on availability" bullet list at the top of docs.python.org/library/os should already say everything that there is to say here... |
Yes, but when you jump directly to one of the functions, you don't see that bullet list. Whereas if it were a footnote on the 'avaiability: unix" statement, the natural thing would be to follow the footnote and thus learn the limitations on that statement. Thus I think the footnote would be better than the bullet list at the top. |
That's a good point, indeed. |
In another issue Georg came up with the idea of creating an availability directive that would auto link to the appropriate text. This would then apply to all our different availability types. |
If no-one else has started on this, I’m interested in making a patch to introduce an availability directive. |
A draft is attached. The directive currently just always links to the "availability" notes, which I have moved to the main "Operating system services" document. Please review! |
I can't comment on the Sphinx extension code but this is a good idea. |
I like the idea of a single place where the Availability is described, and adding a link to this place. availability-directive.patch LGTM. |
Hello, It doesn't appear that this patch was ever merged. If there's still interest, would it be OK for me to convert it to a PR? Thanks! |
A PR for this would be good, and would certainly accelerate getting this accomplished. Thanks, Cheryl! |
Thanks, Fred. I've submitted the PR. |
Thank you Sandro Tosi for the bug report, thanks Georg Brandl for initial patch, and thanks Cheryl Sabella for the final changes in 3.7 and master! According to Yury Selivanov, it's not need to backport this change to 2.7 and 3.6, so I close the issue. |
And thank you, Victor, for reviewing and merging! :-) |
Just wondered... was that really ever fixed? Current documentation still seems to contain no indication that e.g. |
Not sure what you’re asking. We can see in the timeline on this page that a change was merged, which makes docs such as https://docs.python.org/3/library/os.html#os.lchmod contain a link to https://docs.python.org/3/library/intro.html#availability that clarifies what «availability» means – the goal of this ticket! |
Well, yes... but that's a pretty abstract information, isn't it? It's even a bit unusual, the first point says "Unix doesn't claim that a function exists on a specific OS"... while the second point says "Unix means it is available on MacOS, because that's a Unix". Anyway... many functions do seem to have specific notes about Linux availability (e.g. when a minimum kernel version is required). |
How could that be said? Doesn’t each feature depend on specifc kernel version and build options? Edit: I guess there are many that are introduced by freebsd or aix or macos and don’t exist at all on linux. Do you have a list of such functions? If so, please open a new ticket so that this can be corrected! |
I'd have naively guessed that It's also not documented in the "Linux manpages"... so I'd say it's a general thing. |
Just found https://unix.stackexchange.com/questions/224979/why-do-linux-posix-have-lchown-but-not-lchmod ... so seems to be as I've suspected before. |
Opened a new issue #107959 and filed an MR. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: