Serhiy Storchaka 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								c6b570e5e3 
								
							 
						 
						
							
							
								
								gh-71339: Use new assertion methods in test_asyncio ( #129051 )  
							
							
							
						 
						
							2025-01-20 17:02:39 +05:30 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Kumar Aditya 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								9fce906825 
								
							 
						 
						
							
							
								
								gh-127949: deprecate asyncio.set_event_loop ( #128218 )  
							
							... 
							
							
							
							Deprecate `asyncio.set_event_loop` to be removed in Python 3.16. 
							
						 
						
							2024-12-24 19:24:28 +05:30 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Kumar Aditya 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								5892853fb7 
								
							 
						 
						
							
							
								
								gh-127949: deprecate asyncio.set_event_loop_policy ( #128024 )  
							
							... 
							
							
							
							First step towards deprecating the asyncio policy system.
This deprecates `asyncio.set_event_loop_policy` and will be removed in Python 3.16. 
							
						 
						
							2024-12-18 11:35:29 +05:30 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Bénédikt Tran 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								ed5059eeb1 
								
							 
						 
						
							
							
								
								gh-125966: fix use-after-free on fut->fut_callback0 due to an evil callback's __eq__ in asyncio ( #125967 )  
							
							
							
						 
						
							2024-10-27 22:40:10 +05:30 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Bénédikt Tran 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								f819d4301d 
								
							 
						 
						
							
							
								
								gh-125984: fix use-after-free on fut->fut_{callback,context}0 due to an evil loop.__getattribute__ ( #126003 )  
							
							
							
						 
						
							2024-10-27 20:34:43 +05:30 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Bénédikt Tran 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								c5b99f5c2c 
								
							 
						 
						
							
							
								
								gh-125969: fix OOB in future_schedule_callbacks due to an evil call_soon ( #125970 )  
							
							... 
							
							
							
							Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com> 
							
						 
						
							2024-10-25 23:45:09 +05:30 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Kumar Aditya 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								cae853e3b4 
								
							 
						 
						
							
							
								
								GH-125789: fix fut._callbacks to always return a copy of callbacks ( #125922 )  
							
							... 
							
							
							
							Fix `asyncio.Future._callbacks` to always return a copy of the internal list of callbacks to avoid mutation from user code affecting the internal state. 
							
						 
						
							2024-10-25 18:19:30 +05:30 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Thomas Grainger 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								0b28ea4a35 
								
							 
						 
						
							
							
								
								gh-124958: Revert "gh-125472: Revert "gh-124958: fix asyncio.TaskGroup and _PyFuture refcycles ... ( #125486 )  
							
							... 
							
							
							
							* Revert "gh-125472: Revert "gh-124958: fix asyncio.TaskGroup and _PyFuture refcycles (#12… (#125476 )"
This reverts commit e99650b80a 
							
						 
						
							2024-10-14 15:45:58 -07:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Kirill Podoprigora 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								e99650b80a 
								
							 
						 
						
							
							
								
								gh-125472: Revert "gh-124958: fix asyncio.TaskGroup and _PyFuture refcycles (#12… ( #125476 )  
							
							... 
							
							
							
							Revert "gh-124958: fix asyncio.TaskGroup and _PyFuture refcycles (#124959 )"
This reverts commit d5dbbf4372 
							
						 
						
							2024-10-14 17:59:13 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Thomas Grainger 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								d5dbbf4372 
								
							 
						 
						
							
							
								
								gh-124958: fix asyncio.TaskGroup and _PyFuture refcycles ( #124959 )  
							
							
							
						 
						
							2024-10-14 08:19:56 -07:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									rsp4jack 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								85843348c5 
								
							 
						 
						
							
							
								
								gh-117459: Keep the traceback in _convert_future_exc ( #117460 )  
							
							
							
						 
						
							2024-04-03 20:13:32 -07:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Jamie Phan 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								4826d52338 
								
							 
						 
						
							
							
								
								gh-112182: Replace StopIteration with RuntimeError for future ( #113220 )  
							
							... 
							
							
							
							When an `StopIteration` raises into `asyncio.Future`, this will cause
a thread to hang. This commit address this by not raising an exception
and silently transforming the `StopIteration` with a `RuntimeError`,
which the caller can reconstruct from `fut.exception().__cause__` 
							
						 
						
							2024-01-09 21:21:00 -08:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Shantanu 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								a178ba82bf 
								
							 
						 
						
							
							
								
								gh-101326: Fix regression when passing None to FutureIter.throw ( #101327 )  
							
							
							
						 
						
							2023-01-25 12:01:01 -08:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Serhiy Storchaka 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								fd38a2f0ec 
								
							 
						 
						
							
							
								
								gh-93453: No longer create an event loop in get_event_loop() ( #98440 )  
							
							... 
							
							
							
							asyncio.get_event_loop() now always return either running event loop or
the result of get_event_loop_policy().get_event_loop() call. The latter
should now raise an RuntimeError if no current event loop was set
instead of creating and setting a new event loop.
It affects also a number of asyncio functions and constructors which
call get_event_loop() implicitly: ensure_future(), shield(), gather(),
etc.
DeprecationWarning is no longer emitted if there is no running event loop but
the current event loop was set.
Co-authored-by: Łukasz Langa <lukasz@langa.pl> 
							
						 
						
							2022-12-06 18:42:12 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Guido van Rossum 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								09de8d7aaf 
								
							 
						 
						
							
							
								
								GH-90985: Revert  "Deprecate passing a message into cancel()" ( #97999 )  
							
							... 
							
							
							
							Reason: we were too hasty in deprecating this.
We shouldn't deprecate it before we have a replacement. 
							
						 
						
							2022-10-06 17:30:27 -07:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Guido van Rossum 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								63780f4599 
								
							 
						 
						
							
							
								
								GH-97592: Fix crash in C remove_done_callback due to evil code ( #97660 )  
							
							... 
							
							
							
							Evil code could cause fut_callbacks to be cleared when PyObject_RichCompareBool is called. 
							
						 
						
							2022-09-30 12:57:09 -07:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Ofey Chan 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								83a3de4e06 
								
							 
						 
						
							
							
								
								gh-96348: Deprecate the 3-arg signature of coroutine.throw and generator.throw (GH-96428)  
							
							
							
						 
						
							2022-09-30 09:43:02 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Serhiy Storchaka 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								090721721b 
								
							 
						 
						
							
							
								
								Simplify testing the warning filename (GH-91868)  
							
							... 
							
							
							
							The context manager result has the "filename" attribute. 
							
						 
						
							2022-04-24 10:23:59 +03:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Andrew Svetlov 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								0360e9f346 
								
							 
						 
						
							
							
								
								bpo-46829: Deprecate passing a message into Future.cancel() and Task.cancel() (GH-31840)  
							
							... 
							
							
							
							After a long deliberation we ended up feeling that the message argument for Future.cancel(), added in 3.9, was a bad idea, so we're deprecating it in 3.11 and plan to remove it in 3.13. 
							
						 
						
							2022-03-23 08:43:05 -07:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Kumar Aditya 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								ea5b96842e 
								
							 
						 
						
							
							
								
								bpo-46469: Make asyncio generic classes return GenericAlias (GH-30777)  
							
							... 
							
							
							
							* bpo-46469: Make asyncio generic classes return GenericAlias
* 📜 🤖  Added by blurb_it.
* Update Misc/NEWS.d/next/Library/2022-01-22-05-05-08.bpo-46469.plUab5.rst
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> 
							
						 
						
							2022-01-22 13:28:53 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Nikita Sobolev 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								f779faccd3 
								
							 
						 
						
							
							
								
								bpo-46358: modernize test_asyncio (GH-30562)  
							
							
							
						 
						
							2022-01-13 23:28:02 +09:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Serhiy Storchaka 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								6ca78affc8 
								
							 
						 
						
							
							
								
								bpo-23819: Get rid of assert statements in test_asyncio (GH-30212)  
							
							... 
							
							
							
							To keep checks even if run tests with optimized Python.
Either use special assertion methods like assertEqual() or
raise an AssertionError explicitly. 
							
						 
						
							2021-12-20 12:23:05 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Serhiy Storchaka 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								7dc505b865 
								
							 
						 
						
							
							
								
								bpo-45011: Fix test_asyncio without C module _asyncio (GH-27968)  
							
							... 
							
							
							
							Co-authored-by: Łukasz Langa <lukasz@langa.pl> 
							
						 
						
							2021-08-26 14:48:24 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Serhiy Storchaka 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								172c0f2752 
								
							 
						 
						
							
							
								
								bpo-39529: Deprecate creating new event loop in asyncio.get_event_loop() (GH-23554)  
							
							... 
							
							
							
							asyncio.get_event_loop() emits now a deprecation warning when it creates a new event loop.
In future releases it will became an alias of asyncio.get_running_loop(). 
							
						 
						
							2021-04-25 13:40:44 +03:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Chris Jerdonek 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								1ce5841eca 
								
							 
						 
						
							
							
								
								bpo-31033: Add a msg argument to Future.cancel() and Task.cancel() (GH-19979)  
							
							
							
						 
						
							2020-05-15 16:55:50 -07:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Andrew Svetlov 
								
							 
						 
						
							
							
							
							
								
							
							
								dad6be5ffe 
								
							 
						 
						
							
							
								
								bpo-38785: Prevent asyncio from crashing  (GH-17144)  
							
							... 
							
							
							
							if parent `__init__` is not called from a constructor of object derived from `asyncio.Future`
https://bugs.python.org/issue38785  
							
						 
						
							2019-11-13 13:36:46 -08:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Zackery Spytz 
								
							 
						 
						
							
							
							
							
								
							
							
								842acaab13 
								
							 
						 
						
							
							
								
								bpo-35504: Fix segfaults and SystemErrors when deleting certain attrs. (GH-11175)  
							
							
							
						 
						
							2018-12-17 16:52:45 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Brett Cannon 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								8425de4147 
								
							 
						 
						
							
							
								
								bpo-33562: Check the global asyncio event loop policy isn't set after any tests (GH-7328)  
							
							
							
						 
						
							2018-06-01 20:34:09 -07:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Yury Selivanov 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								22feeb88b4 
								
							 
						 
						
							
							
								
								bpo-32643: Drop support for a few private Task and Future APIs. ( #5293 )  
							
							... 
							
							
							
							Specifically, it's not possible to subclass Task/Future classes
and override the following methods:
* Future._schedule_callbacks
* Task._step
* Task._wakeup 
							
						 
						
							2018-01-24 11:31:01 -05:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Yury Selivanov 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								f23746a934 
								
							 
						 
						
							
							
								
								bpo-32436: Implement PEP 567 ( #5027 )  
							
							
							
						 
						
							2018-01-22 19:11:18 -05:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Yury Selivanov 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								e0aef4f3cd 
								
							 
						 
						
							
							
								
								bpo-31721: Allow Future._log_traceback to only be set to False ( #5009 )  
							
							
							
						 
						
							2017-12-25 16:16:10 -05:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Yury Selivanov 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								0cf16f9ea0 
								
							 
						 
						
							
							
								
								bpo-32363: Disable Task.set_exception() and Task.set_result() ( #4923 )  
							
							
							
						 
						
							2017-12-25 10:48:15 -05:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Yury Selivanov 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								ca9b36cd1a 
								
							 
						 
						
							
							
								
								bpo-32415: Add asyncio.Task.get_loop() and Future.get_loop() ( #4992 )  
							
							
							
						 
						
							2017-12-23 15:04:15 -05:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Yury Selivanov 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								1b7c11ff0e 
								
							 
						 
						
							
							
								
								bpo-32348: Optimize asyncio.Future schedule/add/remove callback. ( #4907 )  
							
							
							
						 
						
							2017-12-17 20:19:47 -05:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Yury Selivanov 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								3e9751819a 
								
							 
						 
						
							
							
								
								bpo-32273: Move asyncio.test_utils to test.test_asyncio ( #4785 )  
							
							
							
						 
						
							2017-12-11 10:04:40 -05:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Serhiy Storchaka 
								
							 
						 
						
							
							
							
							
								
							
							
								bca4939d80 
								
							 
						 
						
							
							
								
								bpo-31185: Fixed miscellaneous errors in asyncio speedup module. ( #3076 )  
							
							
							
						 
						
							2017-09-03 08:10:14 +03:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Victor Stinner 
								
							 
						 
						
							
							
							
							
								
							
							
								16432beadb 
								
							 
						 
						
							
							
								
								bpo-31250, test_asyncio: fix dangling threads ( #3252 )  
							
							... 
							
							
							
							* Explicitly call shutdown(wait=True) on executors to wait until all
  threads complete to prevent side effects between tests.
* Fix test_loop_self_reading_exception(): don't mock loop.close().
  Previously, the original close() method was called rather than the
  mock, because how set_event_loop() registered loop.close(). 
							
						 
						
							2017-09-01 14:46:06 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Alexander Mohr 
								
							 
						 
						
							
							
							
							
								
							
							
								de34cbe9cd 
								
							 
						 
						
							
							
								
								bpo-31061: fix crash in asyncio speedup module (GH-2966)  
							
							
							
						 
						
							2017-08-02 15:31:07 +09:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Yury Selivanov 
								
							 
						 
						
							
							
							
							
								
							
							
								833a3b0d37 
								
							 
						 
						
							
							
								
								bpo-30828: Fix out of bounds write in `asyncio.CFuture.remove_done_callback() ( #2569 )  
							
							
							
						 
						
							2017-07-05 13:32:03 -04:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Yury Selivanov 
								
							 
						 
						
							
							
							
							
								
							
							
								7ce1c6fb57 
								
							 
						 
						
							
							
								
								bpo-30508: Don't log exceptions if Task/Future "cancel()" method called ( #2050 )  
							
							
							
						 
						
							2017-06-11 13:49:18 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Yury Selivanov 
								
							 
						 
						
							
							
							
							
								
							
							
								84af903f3b 
								
							 
						 
						
							
							
								
								bpo-28963: Fix out of bound iteration in asyncio.Future.remove_done_callback/C ( #408 )  
							
							
							
						 
						
							2017-03-02 23:46:56 -05:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Benjamin Peterson 
								
							 
						 
						
							
							
							
							
								
							
							
								996fc1fcfc 
								
							 
						 
						
							
							
								
								correctly emulate error semantics of gen.throw in FutureIter_throw  
							
							
							
						 
						
							2016-11-14 00:15:44 -08:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Yury Selivanov 
								
							 
						 
						
							
							
							
							
								
							
							
								6130c0271f 
								
							 
						 
						
							
							
								
								Merge 3.5 (issue  #28634 )  
							
							
							
						 
						
							2016-11-07 16:07:30 -05:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Yury Selivanov 
								
							 
						 
						
							
							
							
							
								
							
							
								49d6b8c0c3 
								
							 
						 
						
							
							
								
								Issue  #28634 : Fix asyncio.isfuture() to support mocks  
							
							
							
						 
						
							2016-11-07 16:00:50 -05:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Yury Selivanov 
								
							 
						 
						
							
							
							
							
								
							
							
								69312fa4a2 
								
							 
						 
						
							
							
								
								Merge 3.5 (issue  #28613 )  
							
							
							
						 
						
							2016-11-04 14:30:11 -04:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Yury Selivanov 
								
							 
						 
						
							
							
							
							
								
							
							
								600a349781 
								
							 
						 
						
							
							
								
								Issue  #28613 : Fix get_event_loop() to return the current loop  
							
							... 
							
							
							
							when called from coroutines or callbacks. 
							
						 
						
							2016-11-04 14:29:28 -04:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Yury Selivanov 
								
							 
						 
						
							
							
							
							
								
							
							
								01c521ba7a 
								
							 
						 
						
							
							
								
								asyncio: Increase asyncio.Future test coverage; test both implementations.  
							
							... 
							
							
							
							Also, add 'isfuture' to 'asyncio.futures.__all__', so that it's
exposed as 'asyncio.isfuture'. 
							
						 
						
							2016-10-23 22:34:35 -04:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Yury Selivanov 
								
							 
						 
						
							
							
							
							
								
							
							
								a4b884f900 
								
							 
						 
						
							
							
								
								Issue  #28492 : Fix how StopIteration is raised in _asyncio.Future  
							
							
							
						 
						
							2016-10-20 15:54:20 -04:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Guido van Rossum 
								
							 
						 
						
							
							
							
							
								
							
							
								7b3b3dc85d 
								
							 
						 
						
							
							
								
								Merge asyncio upstream.  
							
							
							
						 
						
							2016-09-09 14:26:31 -07:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Yury Selivanov 
								
							 
						 
						
							
							
							
							
								
							
							
								7661db6228 
								
							 
						 
						
							
							
								
								Issue  #27041 : asyncio: Add loop.create_future method  
							
							
							
						 
						
							2016-05-16 15:38:39 -04:00