[issue35275] Reading umask (thread-safe)
STINNER Victor
report at bugs.python.org
Mon Nov 19 06:32:26 EST 2018
STINNER Victor <vstinner at redhat.com> added the comment:
Maybe the Python documentation can be enhanced to document functions which are known to have a side-effect "process-wide" vs "thread-safe" functions. For example, signal.pthread_sigmark() affects the current thread, wheras locale.setlocale() is process-wide.
See "POSIX Safety Concepts" of the glibc:
https://www.gnu.org/software/libc/manual/html_node/POSIX-Safety-Concepts.html#POSIX-Safety-Concepts
Example with setlocale, "MT-Unsafe":
https://www.gnu.org/software/libc/manual/html_node/Setting-the-Locale.html
----------
nosy: +vstinner
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35275>
_______________________________________
More information about the Python-bugs-list
mailing list