Author vstinner
Recipients guettli, serhiy.storchaka, vstinner
Date 2018-11-19.11:32:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1542627146.39.0.788709270274.issue35275@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2018-11-19 11:32:26vstinnersetrecipients: + vstinner, guettli, serhiy.storchaka
2018-11-19 11:32:26vstinnersetmessageid: <1542627146.39.0.788709270274.issue35275@psf.upfronthosting.co.za>
2018-11-19 11:32:26vstinnerlinkissue35275 messages
2018-11-19 11:32:26vstinnercreate