Changes¶
Version 1.9.0¶
Released 2024-11-08
Version 1.8.2¶
Released 2024-05-06
Simplify type for
_async_wrapperand_sync_wrapperarguments. #156
Version 1.8.1¶
Released 2024-04-28
Version 1.8.0¶
Released 2024-04-27
Deprecate the
__version__attribute. Use feature detection, orimportlib.metadata.version("blinker"), instead. #128Specify that the deprecated
temporarily_connected_towill be removed in the next version.Show a deprecation warning for the deprecated global
receiver_connectedsignal and specify that it will be removed in the next version.Show a deprecation warning for the deprecated
WeakNamespaceand specify that it will be removed in the next version.Greatly simplify how the library uses weakrefs. This is a significant change internally but should not affect any public API. #144
Expose the namespace used by
signal()asdefault_namespace. #145
Version 1.7.0¶
Released 2023-11-01
Version 1.6.3¶
Released 2023-09-23
Version 1.6.2¶
Released 2023-04-12
Type annotations are not evaluated at runtime. typing-extensions is not a runtime dependency. #94
Version 1.6.1¶
Released 2023-04-09
Ensure that
py.typedis present in the distributions (to enable other projects to use Blinker’s typing).Require typing-extensions > 4.2 to ensure it includes
ParamSpec. #90
Version 1.6¶
Released 2023-04-02
Add a
mutedcontext manager to temporarily turn off a signal. #84intinstances with the same value will be treated as the same sender, the same asstrinstances. #83Add a
send_asyncmethod to allow signals to send to coroutine receivers. #76Update and modernise the project structure to match that used by the Pallets projects. #77
Add an initial set of type hints for the project.
Version 1.5¶
Released 2022-07-17
Support Python >= 3.7 and PyPy. Python 2, Python < 3.7, and Jython may continue to work, but the next release will make incompatible changes.
Version 1.4¶
Released 2015-07-23
Verified Python 3.4 support, no changes needed.
Additional bookkeeping cleanup for non-
ANYconnections at disconnect time.Added
Signal._cleanup_bookeeping()to prune stale bookkeeping on demand.
Version 1.3¶
Released 2013-07-03
The global signal stash behind
signal()is now backed by a regular name-to-Signaldictionary. Previously, weak references were held in the mapping and ephermal usage in code likesignal('foo').connect(...)could have surprising program behavior depending on import order of modules.Namespaceis now built on a regular dict. UseWeakNamespacefor the older, weak-referencing behavior.Signal.connect('text-sender')uses an alterate hashing strategy to avoid sharp edges in text identity.
Version 1.2¶
Released 2011-10-26
Added
Signal.receiver_connectedandSignal.receiver_disconnectedper-Signalsignals.Deprecated the global
receiver_connectedsignal.Verified Python 3.2 support, no changes needed.
Version 1.1¶
Released 2010-07-21
Added
@signal.connect_via(sender)decoratorAdded
signal.connected_toshorthand name for thetemporarily_connected_tocontext manager.
Version 1.0¶
Released 2010-03-28
Python 3.0 and 3.1 compatibility.
Version 0.9¶
Released 2010-02-26
Added
Signal.temporarily_connected_tocontext manager.Docs! Sphinx docs, project web site.
Version 0.8¶
Released 2010-02-14
Initial release.
Extracted from
flatland.util.signals.Added Python 2.4 compatibility.
Added nearly functional Python 3.1 compatibility. Everything except connecting to instance methods seems to work.
MIT License¶
Copyright 2010 Jason Kirtland
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.