summaryrefslogtreecommitdiff
path: root/django/dispatch
AgeCommit message (Collapse)Author
2026-03-17Fixed #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-31Refs #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-29Fixed #36714 -- Fixed context sharing among async signal handlers.Arfey
2025-11-07Fixed #36315 -- Used TaskGroup instead of asyncio.gather().Thomas Grainger
2025-07-23Refs #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-23Refs #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-23Fixed #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-08Fixed #35174 -- Fixed Signal.asend()/asend_robust() crash when all receivers ↵Vašek Dohnal
are asynchronous. Regression in e83a88566a71a2353cebc35992c110be0f8628af.
2023-03-07Fixed #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-07Refs #33476 -- Reformatted code with Black.django-bot
2021-06-25Refs #32508 -- Raised ImproperlyConfigured/TypeError instead of using ↵Mateo Radman
"assert" in various code.
2021-01-14Refs #31327 -- Removed providing_args argument for Signal per deprecation ↵Mariusz Felisiak
timeline.
2020-12-15Fixed #32261 -- Added error logging to Signal.send_robust().Ayush Bansal
2020-03-05Fixed #31327 -- Deprecated providing_args argument for Signal.Jon Dufresne
2018-10-09Capitalized "Python" in docs and comments.Jon Dufresne
2018-04-17Fixed #29334 -- Updated pypi.python.org URLs to pypi.org.Brett Cannon
2018-01-03Fixed #28984 -- Made assorted code simplifications.Tim Graham
2017-12-26Fixed #28930 -- Simplified code with any() and all().Дилян Палаузов
2017-02-20Refs #27656 -- Updated django.forms/http docstring verbs according to PEP 257.Anton Samarchyan
2017-01-24Refs #23919 -- Removed __traceback__ setting needed for Python 2.Tim Graham
Partially reverted refs #25761 and refs #16245.
2017-01-19Refs #23919 -- Stopped inheriting from object to define new style classes.Simon Charette
2017-01-18Refs #23919 -- Removed most of remaining six usageClaude Paroz
Thanks Tim Graham for the review.
2017-01-18Refs #23919 -- Removed six.PY2/PY3 usageClaude Paroz
Thanks Tim Graham for the review.
2017-01-17Refs #24205 -- Removed Signal.disconnect()'s weak argument.Tim Graham
Per deprecation timeline.
2016-11-22Fixed #27513 -- Made Signal.send()/send_robust() a tiny bit faster.Adam Chainz
2016-11-14Fixed E305 flake8 warnings.Ramin Farajpour Cami
2016-05-30Fixed #13080 -- Corrected accepted values of sender parameter in ↵Berker Peksag
Signal.connect() docstring.
2016-04-08Fixed E128 flake8 warnings in django/.Tim Graham
2016-01-12Corrected a few typos in Signal.send() docstring.Jarek Glowacki
2015-09-28Moved and updated Python license.Tim Graham
2015-08-31Fixed #25331 -- Removed trailing blank lines in docstrings.Maxime Lorant
2015-06-24Renamed RemovedInDjangoXYWarnings for new roadmap.Tim Graham
Forwardport of ae1d663b7913f6da233c55409c4973248372d302 from stable/1.8.x plus more.
2015-06-18Removed support for Python 3.3.Tim Graham
2015-06-15Fixed #24979 -- Removed usage of inspect.getargspec().Tim Graham
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2015-01-23Fixed #24205 -- Deprecated Signal.disconnect weak parameter.Florian Apolloner
2015-01-23Clarified docstring in dispatch/dispatcher.pyTim Graham
2015-01-02Added return value to Signal.disconnect().Andriy Sokolovskiy
2014-12-13Fixed #23812 -- Changed django.utils.six.moves.xrange imports to rangeMichael Hall
2014-12-02Fixed typo in django/dispatch/dispatcher.py docstring.jerry dumblauskas
2014-05-16Fixed #16245 -- Included traceback in send_robust()'s responseUnai Zalakain
Exceptions from the (receiver, exception) tuples returned by ``send_robust()`` now have always their traceback attached as their ``__traceback__`` argument.
2014-03-03Fixed many typos in comments and docstrings.Rodolfo Carvalho
Thanks Piotr Kasprzyk for help with the patch.
2014-02-05Simplified signal code.Florian Apolloner
Refs #21952
2014-02-05Fixed #21952 -- signals deadlock due to locking + weakref interactionAnssi Kääriäinen
2014-01-12Fixed flake8 issues.Simon Charette
2014-01-12Added license info for the weakref backportsFlorian Apolloner
2014-01-09Fixed removal of signal receivers in Python 3.4Florian 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-14Fixed E127 pep8 warnings.Loic Bistuer
2013-11-23Fixed #21486 -- Prevented settings config in signal connectionClaude 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-19Use `classmethod` as a decorator.xuxiang