summaryrefslogtreecommitdiffstats
path: root/Doc/library/threading.rst
Commit message (Collapse)AuthorAgeFilesLines
* bpo-10978: Semaphores can release multiple threads at a time (GH-15588)Raymond Hettinger2019-08-291-4/+7
|
* bpo-36084: Add threading Native ID information to What's New documentation ↵Jake Tesler2019-07-301-1/+1
| | | | (GH-14845)
* bpo-37266: Daemon threads are now denied in subinterpreters (GH-14049)Victor Stinner2019-06-141-0/+8
| | | | | | | | | | | | In a subinterpreter, spawning a daemon thread now raises an exception. Daemon threads were never supported in subinterpreters. Previously, the subinterpreter finalization crashed with a Pyton fatal error if a daemon thread was still running. * Add _thread._is_main_interpreter() * threading.Thread.start() now raises RuntimeError if the thread is a daemon thread and the method is called from a subinterpreter. * The _thread module now uses Argument Clinic for the new function. * Use textwrap.dedent() in test_threading.SubinterpThreadingTests
* bpo-37261: Document sys.unraisablehook corner cases (GH-14059)Victor Stinner2019-06-141-0/+8
| | | | | | | | | | | Document reference cycle and resurrected objects issues in sys.unraisablehook() and threading.excepthook() documentation. Fix test.support.catch_unraisable_exception(): __exit__() no longer ignores unraisable exceptions. Fix test_io test_writer_close_error_on_close(): use a second catch_unraisable_exception() to catch the BufferedWriter unraisable exception.
* bpo-37077: Add native thread ID (TID) for AIX (GH-13624)Michael Felt2019-06-131-1/+1
| | | | | | | This is the followup for issue36084 https://bugs.python.org/issue37077
* bpo-37160: Thread native ID NetBSD support (GH-13835)David Carlier2019-06-121-1/+1
|
* bpo-37087: Adding native ID support for OpenBSD (GH-13654)David Carlier2019-06-031-2/+2
|
* bpo-1230540: Add threading.excepthook() (GH-13515)Victor Stinner2019-05-271-0/+30
| | | | | | | | | | | | | | | | | | | Add a new threading.excepthook() function which handles uncaught Thread.run() exception. It can be overridden to control how uncaught exceptions are handled. threading.ExceptHookArgs is not documented on purpose: it should not be used directly. * threading.excepthook() and threading.ExceptHookArgs. * Add _PyErr_Display(): similar to PyErr_Display(), but accept a 'file' parameter. * Add _thread._excepthook(): C implementation of the exception hook calling _PyErr_Display(). * Add _thread._ExceptHookArgs: structseq type. * Add threading._invoke_excepthook_wrapper() which handles the gory details to ensure that everything remains alive during Python shutdown. * Add unit tests.
* bpo-36084: Add native thread ID (TID) to threading.Thread (GH-13463)Jake Tesler2019-05-221-0/+32
| | | | Add native thread ID (TID) to threading.Thread objects (supported platforms: Windows, FreeBSD, Linux, macOS).
* Revert "bpo-36084: Add native thread ID to threading.Thread objects ↵Victor Stinner2019-05-211-31/+0
| | | | | (GH-11993)" (GH-13458) This reverts commit 4959c33d2555b89b494c678d99be81a65ee864b0.
* Correct typos in the Barrier specification (GH-9395)Géry Ogam2019-05-171-2/+2
|
* bpo-36084: Add native thread ID to threading.Thread objects (GH-11993)Jake Tesler2019-05-121-0/+31
|
* replace 'sequencial argument' by 'positional' in doc (GH-12925)Mathieu Dupuy2019-04-231-1/+1
|
* bpo-35506: Remove redundant and incorrect links from keywords. (GH-11174)Serhiy Storchaka2018-12-191-2/+2
|
* bpo-11233: Create availability directive for documentation (GH-9692)Cheryl Sabella2018-10-121-1/+2
| | | | | | Replace "Availability: xxx" with ".. availability:: xxx" in the doc. Original patch by Georg Brandl. Co-Authored-By: Georg Brandl <georg@python.org>
* closes bpo-34004: Skip lock interruption tests on musl. (GH-9224)Benjamin Peterson2018-09-121-1/+2
| | | | | | | | | | | Returning EINTR from pthread semaphore or lock acquisition is an optional POSIX feature. musl does not provide this feature, so some threadsignal tests fail when Python is built against it. There's no good way to test for musl, so we skip if we're on Linux and not using glibc pthreads. Also, hedge in the threading documentation about when we can provide interrupts from lock acquisition.
* bpo-32208: update threading.Semaphore docs and add unit test (#4709)Garrett Berg2017-12-071-13/+13
| | | | | | | | | | * fix issue32208: update threading.Semaphore docs and add unit test to validate correct behavior * add test for blocking * Update threading.rst * semaphore: remove documentation validation tests and move 'return value' test to BaseSemaphore
* point to the module-level get_ident function rather than the one in _thread ↵Benjamin Peterson2017-09-271-4/+4
| | | | (#3782)
* Restore dummy_threading and _dummy_thread, but deprecate them (bpo-31370) ↵Antoine Pitrou2017-09-181-2/+2
| | | | (#3648)
* bpo-31191: Improve grammar in threading.Barrier docs (GH-3080)Saurabh Chaturvedi2017-08-141-2/+2
|
* bpo-27618: Clarify that threading.Lock is a factory function (GH-1307)csabella2017-06-011-2/+3
|
* Issue #28960: Drop comma attached to dash in Thread.join() descriptionMartin Panter2016-12-241-1/+1
|
* Issue #19795: Improved more markups of True/False.Serhiy Storchaka2016-10-191-1/+1
|
* Issue #19795: Mark up None as literal text.Serhiy Storchaka2016-10-191-3/+3
|
* Issue #23921: Standardized documentation whitespace formatting.Serhiy Storchaka2016-05-101-1/+1
| | | | Original patch by James Edwards.
* Issue #24952: Clarify default argument of stack_size() in threading, _threadMartin Panter2015-08-311-1/+2
| | | | Patch from Mattip.
* Back porting changeset db302b88fdb6 to 3.4 branch, which fixed multiple ↵Senthil Kumaran2015-06-151-1/+1
| | | | | | | | | documentation typos. Related Issues: #issue21528 #issue24453
* Issue #23943: Fix typos. Patch by Piotr Kasprzyk.Berker Peksag2015-04-141-1/+1
|
* Issue #22369: Change "context manager protocol" to "context management ↵Serhiy Storchaka2014-09-101-4/+4
| | | | protocol".
* merge with 3.3Georg Brandl2013-10-061-1/+1
|\
| * Closes #18927: Lock.acquire only accepts -1 or positive values for timeout.Georg Brandl2013-10-061-1/+1
| |
* | Issue #18882: Add threading.main_thread() function.Andrew Svetlov2013-09-041-0/+9
|/
* Issue #18757: Improved cross-references in the concurrent package.Serhiy Storchaka2013-08-231-6/+7
|
* Issue #17435: Don't use mutable default values in Timer.R David Murray2013-03-301-1/+3
| | | | Patch by Denver Coneybeare with some test modifications by me.
* Issue #17193: Use binary prefixes (KiB, MiB, GiB) for memory units.Serhiy Storchaka2013-02-161-4/+4
|
* Issue #17208: add a note about the termination behaviour of daemon threads.Antoine Pitrou2013-02-151-0/+6
|\
| * Issue #17208: add a note about the termination behaviour of daemon threads.Antoine Pitrou2013-02-151-0/+6
| |
* | #16978: merge with 3.2.Ezio Melotti2013-01-181-2/+2
|\ \ | |/
| * #16978: rephrase sentence and fix typo. Initial patch by Tshepang Lekhonkhobe.Ezio Melotti2013-01-181-2/+2
| |
* | #10968: commit threading doc changes and corresponding whatsnew entry.R David Murray2012-10-061-166/+147
| | | | | | | | | | | | It is unfortunate that the '_' names were not kept as aliases, and that RLock was not also converted to a class, but it is now too late to change either of those things for 3.3.
* | #15865: merge with 3.2.Ezio Melotti2012-09-081-4/+2
|\ \ | |/
* | Remove :noindex: for threading.Thread which killed all reference links to itEli Bendersky2012-07-131-1/+0
| |
* | Remove outdated statements about threading and imports.Antoine Pitrou2012-05-181-24/+0
| |
* | #14823: Simplify threading.Lock.acquire argument discussion.R David Murray2012-05-171-8/+5
|\ \ | |/
| * #14823: Simplify threading.Lock.acquire argument discussion.R David Murray2012-05-171-8/+5
| |
* | Improve the threading.Condition docs.Antoine Pitrou2012-04-111-3/+5
|\ \ | |/
| * Improve the threading.Condition docs.Antoine Pitrou2012-04-111-3/+5
| |
* | MergeAntoine Pitrou2012-04-101-139/+167
|\ \ | |/
| * Small improvements to the threading docs: better publicize support for the ↵Antoine Pitrou2012-04-101-19/+33
| | | | | | | | with statement.
| * Fix some markup in the threading docs.Antoine Pitrou2012-04-101-70/+78
| |