This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author amaury.forgeotdarc
Recipients ajaksu2, amaury.forgeotdarc, tony_nelson
Date 2009-03-30.13:20:09
SpamBayes Score 4.1363464e-09
Marked as misclassified No
Message-id <1238419212.15.0.517755179286.issue1522237@psf.upfronthosting.co.za>
In-reply-to
Content
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)
History
Date User Action Args
2009-03-30 13:20:12amaury.forgeotdarcsetrecipients: + amaury.forgeotdarc, tony_nelson, ajaksu2
2009-03-30 13:20:12amaury.forgeotdarcsetmessageid: <1238419212.15.0.517755179286.issue1522237@psf.upfronthosting.co.za>
2009-03-30 13:20:10amaury.forgeotdarclinkissue1522237 messages
2009-03-30 13:20:10amaury.forgeotdarccreate