[New-bugs-announce] [issue19032] __reduce_ex__ on lock object

Ram Rachum report at bugs.python.org
Mon Sep 16 02:43:04 CEST 2013


New submission from Ram Rachum:

>>> import threading
    >>> l = threading.Lock()
    >>> l.__reduce_ex__(3)
    (<function __newobj__ at 0x00000000026CD8C8>,
     (<class '_thread.lock'>,),
     None,
     None,
     None)

Isn't it a bug that `__reduce_ex__` works on the non-pickleable lock object?

----------
components: Library (Lib)
messages: 197850
nosy: cool-RR
priority: normal
severity: normal
status: open
title: __reduce_ex__ on lock object
type: behavior
versions: Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19032>
_______________________________________


More information about the New-bugs-announce mailing list