| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2026-03-17 | Fixed #36939 -- Avoided weakref.finalize in Signal.connect(). | Juho Hautala | |
| Replaced weak receiver registration in Signal.connect() to pass _flag_dead_receivers directly as the callback for weakref.ref() and weakref.WeakMethod() instead of creating weakref.finalize() objects. This prevented finalizer accumulation in repeated weak connect()/disconnect() cycles where receivers remain alive. | |||
| 2026-01-31 | Refs #34118 -- Removed asgiref coroutine detection shims. | Jacob Walls | |
| As Python 3.12 is now the floor, we can drop the shims and use the `inspect` module. | |||
| 2025-12-29 | Fixed #36714 -- Fixed context sharing among async signal handlers. | Arfey | |
| 2025-11-07 | Fixed #36315 -- Used TaskGroup instead of asyncio.gather(). | Thomas Grainger | |
| 2025-07-23 | Refs #36500 -- Corrected rewrapped long lines fixed via a script. | Mike Edmunds | |
| Manually reformatted some comments and docstrings where autofix_w505.py changed the meaning of the formatting. | |||
| 2025-07-23 | Refs #36500 -- Rewrapped long docstrings and block comments via a script. | django-bot | |
| Rewrapped long docstrings and block comments to 79 characters + newline using script from https://github.com/medmunds/autofix-w505. | |||
| 2025-04-23 | Fixed #35801 -- Prevented collision of senders with non-overlapping lifetimes. | Simon Charette | |
| As documented, the id() function can return the same value for distinct objects with non-overlapping lifetimes which can result in signals being sent to the wrong receivers if two distinct senders happen to have a colliding id() value. Since reproduction of the issue requires memory constrained circumstances where the same exact id() is reused for two senders of the same signal the test opt to simulate the collision by systematically making the same id for Sender instances. Note that we explicitly avoid keeping a strong reference to senders that cannot be weakly referenced as that would unexpectedly prevent them from being garbage collected. This means that id(sender) collisions could still occur for such objects but Django itself doesn't make use of them. Thanks Sjoerd Job Postmus for the reduced test case and Mariusz for the review. Co-authored-by: And Clover <and@doxdesk.com> | |||
| 2024-02-08 | Fixed #35174 -- Fixed Signal.asend()/asend_robust() crash when all receivers ↵ | Vašek Dohnal | |
| are asynchronous. Regression in e83a88566a71a2353cebc35992c110be0f8628af. | |||
| 2023-03-07 | Fixed #32172 -- Adapted signals to allow async handlers. | Jon Janzen | |
| co-authored-by: kozzztik <kozzztik@mail.ru> co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es> | |||
| 2022-02-07 | Refs #33476 -- Reformatted code with Black. | django-bot | |
| 2021-06-25 | Refs #32508 -- Raised ImproperlyConfigured/TypeError instead of using ↵ | Mateo Radman | |
| "assert" in various code. | |||
| 2021-01-14 | Refs #31327 -- Removed providing_args argument for Signal per deprecation ↵ | Mariusz Felisiak | |
| timeline. | |||
| 2020-12-15 | Fixed #32261 -- Added error logging to Signal.send_robust(). | Ayush Bansal | |
| 2020-03-05 | Fixed #31327 -- Deprecated providing_args argument for Signal. | Jon Dufresne | |
| 2018-10-09 | Capitalized "Python" in docs and comments. | Jon Dufresne | |
| 2018-04-17 | Fixed #29334 -- Updated pypi.python.org URLs to pypi.org. | Brett Cannon | |
| 2018-01-03 | Fixed #28984 -- Made assorted code simplifications. | Tim Graham | |
| 2017-12-26 | Fixed #28930 -- Simplified code with any() and all(). | Дилян Палаузов | |
| 2017-02-20 | Refs #27656 -- Updated django.forms/http docstring verbs according to PEP 257. | Anton Samarchyan | |
| 2017-01-24 | Refs #23919 -- Removed __traceback__ setting needed for Python 2. | Tim Graham | |
| Partially reverted refs #25761 and refs #16245. | |||
| 2017-01-19 | Refs #23919 -- Stopped inheriting from object to define new style classes. | Simon Charette | |
| 2017-01-18 | Refs #23919 -- Removed most of remaining six usage | Claude Paroz | |
| Thanks Tim Graham for the review. | |||
| 2017-01-18 | Refs #23919 -- Removed six.PY2/PY3 usage | Claude Paroz | |
| Thanks Tim Graham for the review. | |||
| 2017-01-17 | Refs #24205 -- Removed Signal.disconnect()'s weak argument. | Tim Graham | |
| Per deprecation timeline. | |||
| 2016-11-22 | Fixed #27513 -- Made Signal.send()/send_robust() a tiny bit faster. | Adam Chainz | |
| 2016-11-14 | Fixed E305 flake8 warnings. | Ramin Farajpour Cami | |
| 2016-05-30 | Fixed #13080 -- Corrected accepted values of sender parameter in ↵ | Berker Peksag | |
| Signal.connect() docstring. | |||
| 2016-04-08 | Fixed E128 flake8 warnings in django/. | Tim Graham | |
| 2016-01-12 | Corrected a few typos in Signal.send() docstring. | Jarek Glowacki | |
| 2015-09-28 | Moved and updated Python license. | Tim Graham | |
| 2015-08-31 | Fixed #25331 -- Removed trailing blank lines in docstrings. | Maxime Lorant | |
| 2015-06-24 | Renamed RemovedInDjangoXYWarnings for new roadmap. | Tim Graham | |
| Forwardport of ae1d663b7913f6da233c55409c4973248372d302 from stable/1.8.x plus more. | |||
| 2015-06-18 | Removed support for Python 3.3. | Tim Graham | |
| 2015-06-15 | Fixed #24979 -- Removed usage of inspect.getargspec(). | Tim Graham | |
| 2015-02-06 | Sorted imports with isort; refs #23860. | Tim Graham | |
| 2015-01-23 | Fixed #24205 -- Deprecated Signal.disconnect weak parameter. | Florian Apolloner | |
| 2015-01-23 | Clarified docstring in dispatch/dispatcher.py | Tim Graham | |
| 2015-01-02 | Added return value to Signal.disconnect(). | Andriy Sokolovskiy | |
| 2014-12-13 | Fixed #23812 -- Changed django.utils.six.moves.xrange imports to range | Michael Hall | |
| 2014-12-02 | Fixed typo in django/dispatch/dispatcher.py docstring. | jerry dumblauskas | |
| 2014-05-16 | Fixed #16245 -- Included traceback in send_robust()'s response | Unai Zalakain | |
| Exceptions from the (receiver, exception) tuples returned by ``send_robust()`` now have always their traceback attached as their ``__traceback__`` argument. | |||
| 2014-03-03 | Fixed many typos in comments and docstrings. | Rodolfo Carvalho | |
| Thanks Piotr Kasprzyk for help with the patch. | |||
| 2014-02-05 | Simplified signal code. | Florian Apolloner | |
| Refs #21952 | |||
| 2014-02-05 | Fixed #21952 -- signals deadlock due to locking + weakref interaction | Anssi Kääriäinen | |
| 2014-01-12 | Fixed flake8 issues. | Simon Charette | |
| 2014-01-12 | Added license info for the weakref backports | Florian Apolloner | |
| 2014-01-09 | Fixed removal of signal receivers in Python 3.4 | Florian Apolloner | |
| Make use of `weakref.finalize` and `weakref.WeakMethod` on python 3.4. Simplified the removal of receivers, the old function looked overly complicated. Many thanks go to Antoine Pitrou for helping me to debug and explain all the failures I ran into while writing that patch. | |||
| 2013-12-14 | Fixed E127 pep8 warnings. | Loic Bistuer | |
| 2013-11-23 | Fixed #21486 -- Prevented settings config in signal connection | Claude Paroz | |
| This was particularly problematic in the chain get_wsgi_application -> db.connections import -> signal connection -> settings configuration. Thanks Jon Dufresne for the report. | |||
| 2013-11-19 | Use `classmethod` as a decorator. | xuxiang | |
