{"action":"closed","issue":{"url":"https://api.github.com/repos/schollii/pypubsub/issues/22","repository_url":"https://api.github.com/repos/schollii/pypubsub","labels_url":"https://api.github.com/repos/schollii/pypubsub/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/schollii/pypubsub/issues/22/comments","events_url":"https://api.github.com/repos/schollii/pypubsub/issues/22/events","html_url":"https://github.com/schollii/pypubsub/issues/22","id":375301231,"node_id":"MDU6SXNzdWUzNzUzMDEyMzE=","number":22,"title":"New Publishers","user":{"login":"paddymccrudden","id":17534832,"node_id":"MDQ6VXNlcjE3NTM0ODMy","avatar_url":"https://avatars2.githubusercontent.com/u/17534832?v=4","gravatar_id":"","url":"https://api.github.com/users/paddymccrudden","html_url":"https://github.com/paddymccrudden","followers_url":"https://api.github.com/users/paddymccrudden/followers","following_url":"https://api.github.com/users/paddymccrudden/following{/other_user}","gists_url":"https://api.github.com/users/paddymccrudden/gists{/gist_id}","starred_url":"https://api.github.com/users/paddymccrudden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paddymccrudden/subscriptions","organizations_url":"https://api.github.com/users/paddymccrudden/orgs","repos_url":"https://api.github.com/users/paddymccrudden/repos","events_url":"https://api.github.com/users/paddymccrudden/events{/privacy}","received_events_url":"https://api.github.com/users/paddymccrudden/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-10-30T03:10:48Z","updated_at":"2018-11-06T06:19:52Z","closed_at":"2018-11-06T06:19:52Z","author_association":"NONE","body":"As noted at [pubsub.readthedocs](https://pypubsub.readthedocs.io/en/v4.0.0/usage/module_pub.html),  the expression\r\n\r\n    from pubsub import pub\r\n\r\n> ... creates a “default” instance of pubsub.core.Publisher and binds several local functions to \r\n> some of its methods and those of the pubsub.core.TopicManager instance that it contains. \r\n> However, an application may create as many independent instances of Publisher as\r\n> required (for instance, one in each thread; with a custom queue to mediate message transfer between > threads).\"\r\n\r\nAs noted in this quote, the pub module does quite at bit of work to expose methods and attributes, and it is not immediately obvious how to build a new Publisher() object with the correct attributes exposed.  I'd be really interested in knowing if there is a standard way to do this. Alternatively, perhaps we could add a new module that provides this. "}}
{"actor":{"display_login":"paddymccrudden"}}