A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2013-February/124108.html below:

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

[Python-Dev] cpython: Issue #15022: Add pickle and comparison support to types.SimpleNamespace. [Python-Dev] cpython: Issue #15022: Add pickle and comparison support to types.SimpleNamespace.Antoine Pitrou solipsis at pitrou.net
Sun Feb 17 00:45:39 CET 2013
Hello,

On Sun, 17 Feb 2013 00:42:26 +0100 (CET)
eric.snow <python-checkins at python.org> 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.


More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4