-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
Clarification requested for library/syslog.rst #92412
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
Comments
Une demande d'éclaircissement sur la doc originale a été ouverte. python/cpython#92412
I think this makes a little bit more sense in the context of the 3.1 docs (https://docs.python.org/3.1/library/syslog.html#syslog.openlog ):
So the defaults are what you get when you use syslog without openlog. But take it with a grain of salt, I don't really understand the code, in particular, I don't understand the claim in 3.1's docs that Some more links: |
Yes, that sounds right. Like you, I don't get the claim you mentioned. From what I see,
In both cases, it seems the decision for what to use for ident is up to the syslog implementation (the man page on Debian says that POSIX.1-2008 does not specify the behavior when ident is NULL.) So, most of the time, it seems that syslog uses C's In any case, even with the patch, it seems that the syslog implementation would decide the ident's value if If what I said above is right, I would remove the second line of the "Changed in 3.2" as it could still be true:
|
Marque une entrée de library/syslog.po comme fuzzy. Une demande d'éclaircissement sur la doc originale a été ouverte. python/cpython#92412 Co-authored-by: Jean Abou-Samra <[email protected]>
Marque une entrée de library/syslog.po comme fuzzy. Une demande d'éclaircissement sur la doc originale a été ouverte. python/cpython#92412 Co-authored-by: Jean Abou-Samra <[email protected]>
Marque une entrée de library/syslog.po comme fuzzy. Une demande d'éclaircissement sur la doc originale a été ouverte. python/cpython#92412 Co-authored-by: Jean Abou-Samra <[email protected]>
…95266) (cherry picked from commit b7ce462) Co-authored-by: Nicolas Haller <[email protected]>
Hello,
While translating
library/syslog.rst
we've realized that the comment "Changed in 3.2" forsyslog.openlog()
seems ambiguous:https://docs.python.org/3/library/syslog.html#syslog.openlog
As ident was required before 3.2, it couldn't have a default value, so the sentence seems contradictory.
The documentation for 3.1 shows that ident is mandatory and the tests on the 3.1.5 distribution always define ident when calling
openlog()
.Could someone help us understand the meaning of this sentence?
Thanks
The text was updated successfully, but these errors were encountered: