[Python-Dev] cpython: Issue #15022: Add pickle and comparison support to types.SimpleNamespace. (original) (raw)
Antoine Pitrou solipsis at pitrou.net
Sun Feb 17 00:45:39 CET 2013
- Previous message: [Python-Dev] Point of building without threads?
- Next message: [Python-Dev] cpython: Issue #15022: Add pickle and comparison support to types.SimpleNamespace.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hello,
On Sun, 17 Feb 2013 00:42:26 +0100 (CET) eric.snow <python-checkins at python.org> wrote:
+ def testpickle(self): + ns = types.SimpleNamespace(breakfast="spam", lunch="spam") + + nspickled = pickle.dumps(ns) + nsroundtrip = pickle.loads(nspickled) + + self.assertEqual(ns, nsroundtrip) +
I think you should test with all pickle protocols.
Regards
Antoine.
- Previous message: [Python-Dev] Point of building without threads?
- Next message: [Python-Dev] cpython: Issue #15022: Add pickle and comparison support to types.SimpleNamespace.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]