Release Notes¶
0.4.3-12¶
Other Notes¶
- Enable mypy type checking for pubmarine. This required a small change to how we checked whether to use a WeakMethod or WeakFunction for event handlers as mypy did not understand using try-except to differentiate between the need for methods and the need for functions but it could understand an isinstance check.
0.4.3¶
Other Notes¶
- 0.4.2 had various bugs in building docs on readthedocs.org. Since this release is all about docs, we spun a new one with fixes.
0.4.1¶
Bug Fixes¶
- Fix a traceback when calling callbacks with keyword arguments. Keyword arguments to callbacks would not have worked at all prior to this.
0.4¶
Bug Fixes¶
- In some circumstances, callbacks which had been deallocated in the main program were not being removed from the event_handler list. This could lead to a small inefficiency as PubPen.publish() would continue to attempt to call them even though they were already removed.
Other Notes¶
- Added unittests to prevent regressions
0.3¶
New Features¶
- Added the ability to unsubscribe from an event.
PubPen.subscribe()
now returns a subscription_id that may be used with the new method,PubPen.unsubscribe()
to stop getting notified about an event.
Deprecation Notes¶
PubPen.emit()
has been deprecated. It has been renamed toPubPen.publish()
to better match withPubPen.subscribe()