[New-bugs-announce] [issue13537] Namedtuple instances can't be pickled in a daemonized process

Popa Claudiu report at bugs.python.org
Tue Dec 6 13:28:22 CET 2011


New submission from Popa Claudiu <pcmanticore at gmail.com>:

On Unix world, in a daemonized process, any namedtuple instance can't be pickled, failing with error:
_pickle.PicklingError: Can't pickle class X: attribute lookup __main__.t failed.
This can't be reproduced with the attached code. If I add the created class inside the globals dict, the pickling will work.

----------
components: Library (Lib)
files: daemon.py
messages: 148912
nosy: Popa.Claudiu, rhettinger
priority: normal
severity: normal
status: open
title: Namedtuple instances can't be pickled in a daemonized process
versions: Python 3.3, Python 3.4
Added file: http://bugs.python.org/file23860/daemon.py

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


More information about the New-bugs-announce mailing list