Issue 15339: document the threading "facts of life" in Python (original) (raw)

Created on 2012-07-12 22:00 by chris.jerdonek, last changed 2022-04-11 14:57 by admin.

Messages (5)
msg165336 - (view) Author: Chris Jerdonek (chris.jerdonek) * (Python committer) Date: 2012-07-12 22:00
I think it would be helpful if the Python documentation included certain high-level information about multi-threading in Python. At minimum, I think it would help for the documentation to provide a definition that can be linked to of what it means when some part of the Python documentation says something is "thread-safe". In particular, such a definition could clarify that this is different from being atomic. This might best be addressed by an entry in the glossary for the term "thread-safe". Other documentation possibilities include stating what guarantees one should or should not expect regarding thread-safety, both within and across implementations, and providing centralized guidance on how to approach multi-threaded programming in Python. A HOWTO is one possibility for addressing these other possibilities. This issue stems from the discussion in issue 15329, which is more specific.
msg165338 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2012-07-12 22:11
This sounds like a good idea. Either a HOWTO or a FAQ would sound appropriate.
msg165397 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2012-07-13 18:09
If no one gets to it first, I'll write-up a draft when I get a chance.
msg165436 - (view) Author: Alyssa Coghlan (ncoghlan) * (Python committer) Date: 2012-07-14 07:38
Given the scope of the issue, a concurrent programming howto that lists some of the available options and the caveats associated with each of them seems worthwhile.
msg242046 - (view) Author: Gregory P. Smith (gregory.p.smith) * (Python committer) Date: 2015-04-26 06:10
This seems somewhat related to the "We need to document Python's concurrency and memory model" that came out at the language summit this year.
History
Date User Action Args
2022-04-11 14:57:32 admin set github: 59544
2020-10-26 11:48:57 iritkatriel set priority: low -> normalstage: needs patchtype: behaviorversions: + Python 3.9, Python 3.10, - Python 2.7, Python 3.2, Python 3.3
2015-04-26 06:10:53 gregory.p.smith set nosy: + gregory.p.smithmessages: +
2015-04-25 15:29:31 rhettinger set assignee: rhettinger ->
2015-04-25 15:09:40 s7v7nislands@gmail.com set nosy: + s7v7nislands@gmail.com
2012-07-14 07:38:57 ncoghlan set nosy: + ncoghlanmessages: +
2012-07-13 18:52:34 tshepang set nosy: + tshepang
2012-07-13 18:09:07 rhettinger set priority: normal -> lownosy: + rhettingermessages: + assignee: docs@python -> rhettinger
2012-07-12 22:11:15 pitrou set nosy: + pitroumessages: + versions: + Python 2.7, Python 3.2, Python 3.3
2012-07-12 22:00:35 chris.jerdonek create