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.2

Prelude

This update just brings documentation to the release tarball.

Other Notes

  • Add an example that walks through creating a simplified clone of UNIX talk using asyncio and pubmarine

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 to PubPen.publish() to better match with PubPen.subscribe()