Amaury Forgeot d'Arc <amaur...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue1522237>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to