Re: [Python-Dev] cpython: Issue #15022: Add pickle and comparison support to types.SimpleNamespace.

2013年2月16日 15:51:08 -0800

Hello,
On 2013年2月17日 00:42:26 +0100 (CET)
eric.snow <[email protected]> wrote:
> 
> + def test_pickle(self):
> + ns = types.SimpleNamespace(breakfast="spam", lunch="spam")
> +
> + ns_pickled = pickle.dumps(ns)
> + ns_roundtrip = pickle.loads(ns_pickled)
> +
> + self.assertEqual(ns, ns_roundtrip)
> +
I think you should test with all pickle protocols.
Regards
Antoine.
_______________________________________________
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to