Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(8)

Issue 3641: thread._local, threading.local Python issue 1868 & 3710

Can't Edit
Can't Publish+Mail
Start Review
Created:
1 year, 2 months ago by gregory.p.smith
Modified:
3 months, 1 week ago
CC:
SVN Base:
http://svn.python.org/view/*checkout*/python/trunk/
Visibility:
Public.

Description

This is Amaury's patch from http://bugs.python.org/issue1868

Patch Set 1

Total comments: 4

Patch Set 2 : christian heimes updated version

Patch Set 3 : tamino's update of christian's (threading_local3)

Patch Set 4 : threading_local4 - includes the unit test, fixes the missing error path decref

Unified diffs Side-by-side diffs Delta from patch set Stats Patch
Lib/test/test_threading.py View 1 chunk 66 lines 0 comments Download
Modules/threadmodule.c View 1 2 3 11 chunks 159 lines 0 comments Download

Messages

Total messages: 6
gregory.p.smith
1 year, 2 months ago
Antoine Pitrou
http://codereview.appspot.com/3641/diff/1/2 File Modules/threadmodule.c (right): http://codereview.appspot.com/3641/diff/1/2#newcode207 Line 207: if (PyDict_SetItem(tdict, self->key, localdict) < 0) A Py_DECREF(localdict) ...
1 year, 2 months ago
gregory.p.smith
christian heimes updated version
1 year, 2 months ago
gregory.p.smith
tamino's update of christian's (threading_local3)
1 year, 2 months ago
gregory.p.smith
threading_local4 - includes the unit test, fixes the missing error path decref
1 year, 2 months ago
gregory.p.smith
1 year, 2 months ago
updated, please re-review.

http://codereview.appspot.com/3641/diff/1/2
File Modules/threadmodule.c (right):

http://codereview.appspot.com/3641/diff/1/2#newcode207
Line 207: if (PyDict_SetItem(tdict, self->key, localdict) < 0)
On 2008/08/28 09:29:49, Antoine Pitrou wrote:
> A Py_DECREF(localdict) is needed just before bailing out.
> 

Done.

http://codereview.appspot.com/3641/diff/1/2#newcode300
Line 300: if (res < 0 && PyErr_ExceptionMatches(PyExc_AttributeError)) {
On 2008/08/28 09:29:49, Antoine Pitrou wrote:
> Why did you add this fallback? Is it really necessary?
> 

this has been rewritten so that subclasses work.  please have another look.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld r483