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 eric.araujo
Recipients Claudiu.Popa, alexandre.vassalotti, eric.araujo, pitrou, rhettinger
Date 2011-12-10.15:57:47
SpamBayes Score 0.0044875736
Marked as misclassified No
Message-id <1323532667.83.0.456454248931.issue13537@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2011-12-10 15:57:47eric.araujosetrecipients: + eric.araujo, rhettinger, pitrou, alexandre.vassalotti, Claudiu.Popa
2011-12-10 15:57:47eric.araujosetmessageid: <1323532667.83.0.456454248931.issue13537@psf.upfronthosting.co.za>
2011-12-10 15:57:47eric.araujolinkissue13537 messages
2011-12-10 15:57:47eric.araujocreate