Skip to content

fix and test thread local hook registry#188

Merged
takluyver merged 1 commit into
ipython:masterfrom
minrk:thread-local-hooks
Sep 2, 2016
Merged

fix and test thread local hook registry#188
takluyver merged 1 commit into
ipython:masterfrom
minrk:thread-local-hooks

Conversation

@minrk

@minrk minrk commented Sep 1, 2016

Copy link
Copy Markdown
Member

only the main thread initialized hooks correctly, so other threads would see AttributeError('hooks') on other threads.

closes #180

only the main thread initialized hooks correctly,
so other threads would see AttributeError('hooks')
on other threads.
@minrk minrk modified the milestones: 4.4.2, 4.5 Sep 1, 2016
@takluyver

Copy link
Copy Markdown
Member

Nothing obviously wrong, but I haven't followed this bit of the code closely enough to know exactly how/why we're using thread local data. Do you think it needs more careful review, or are you confident in it?

@minrk

minrk commented Sep 2, 2016

Copy link
Copy Markdown
Member Author

It's a straightforward bug and test covers it, so I'm pretty confident.

@takluyver takluyver merged commit 8837aef into ipython:master Sep 2, 2016
@minrk

minrk commented Sep 2, 2016

Copy link
Copy Markdown
Member Author

@takluyver thanks! I'll make a release shortly. Since a few 4.5 PRs have been merged, do you have an opinion on making a backport 4.4.2 release stripping these out, or just releasing 4.5? I'll update the milestones to match whatever we end up doing. I'm leaning slightly towards just releasing 4.5, and bumping the remaining issue to 4.6.

@minrk minrk deleted the thread-local-hooks branch September 2, 2016 11:45
@takluyver

Copy link
Copy Markdown
Member

I'm fine with making a 4.5 release; it's not really any more effort than doing 4.4.2, is it? Release early, release often, and all that jazz.

@minrk

minrk commented Sep 2, 2016

Copy link
Copy Markdown
Member Author

Indeed. I'll do 4.5, then.

@minrk minrk modified the milestones: 4.4.2, 4.5 Sep 2, 2016
@minrk

minrk commented Sep 2, 2016

Copy link
Copy Markdown
Member Author

@takluyver 4.5 changelog in #189, then I'll release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

'thread._local' object has no attribute 'hooks'

2 participants