Éric Araujo <mer...@netwok.org> added the comment: Confirmed (3.2):
>>> def func(): ... t = collections.namedtuple('t', 'a') ... instance = t(1) ... print(instance) ... return pickle.dumps(instance) >>> func() t(a=1) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "<stdin>", line 5, in func _pickle.PicklingError: Can't pickle <class '__main__.t'>: attribute lookup __main__.t failed We may open an enhancement request to suggest that the error message include the qualname, but otherwise this is not a bug. ---------- nosy: +eric.araujo stage: -> committed/rejected status: pending -> closed _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue13537> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com