Daniel Diniz <[email protected]> added the comment:
It isn't obvious to me that this issue is valid.
Some more context:
class _localbase(object):
__slots__ = '_local__key', '_local__args', '_local__lock'
def __new__(cls, *args, **kw):
self = object.__new__(cls)
key = '_local__key', 'thread.local.' + str(id(self))
object.__setattr__(self, '_local__key', key)
object.__setattr__(self, '_local__args', (args, kw))
object.__setattr__(self, '_local__lock', RLock())
if args or kw and (cls.__init__ is object.__init__):
raise TypeError("Initialization arguments are not supported")
----------
nosy: +ajaksu2
stage: -> test needed
type: -> behavior
versions: +Python 2.6 -Python 2.5
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue1522237>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com