[issue1522237] _threading_local.py logic error in _localbase __new__
Amaury Forgeot d'Arc
report at bugs.python.org
Mon Mar 30 15:20:12 CEST 2009
Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:
It is still valid:
>>> class MyLocal(local):
... def __init__(self, *args, **kwargs):
... self.args = args
... self.kwargs = kwargs
...
>>> MyLocal(1)
This works when local is thread._local (from thread import _local as
local), but fails when imported from _threading_local (from
_threading_local import local)
See attached patch for the test case (and the fix of course)
----------
keywords: +needs review, patch
nosy: +amaury.forgeotdarc
Added file: http://bugs.python.org/file13468/localbase.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1522237>
_______________________________________
More information about the Python-bugs-list
mailing list