Issue 15022: types.SimpleNamespace needs to be picklable (original) (raw)

Issue15022

Created on 2012-06-07 03:37 by eric.snow, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
issue15022_pickle.diff eric.snow,2012-06-07 07:36 review
Messages (4)
msg162453 - (view) Author: Eric Snow (eric.snow) * (Python committer) Date: 2012-06-07 03:37
In issue 15003 Raymond recommended that types.SimpleNamespace be picklable. I'll get a patch up as soon as I can to add this capability.
msg162462 - (view) Author: Eric Snow (eric.snow) * (Python committer) Date: 2012-06-07 07:36
I've attached a patch that gives types.SimpleNamespace pickle support. To do it I had to change the name of the type from "namespace" to "types.SimpleNamespace". That's fine. I also added __eq__/__ne__ support so I could use it during tests.
msg182249 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2013-02-16 23:42
New changeset 3b93ab8c9c20 by Eric Snow in branch 'default': Issue #15022: Add pickle and comparison support to types.SimpleNamespace. http://hg.python.org/cpython/rev/3b93ab8c9c20
msg182252 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2013-02-17 01:25
New changeset e4c065b2db49 by Eric Snow in branch 'default': Issue #15022: Ensure all pickle protocols are supported. http://hg.python.org/cpython/rev/e4c065b2db49
History
Date User Action Args
2022-04-11 14:57:31 admin set github: 59227
2013-02-17 01:25:49 python-dev set messages: +
2013-02-16 23:46:37 eric.snow set status: open -> closedstage: patch review -> resolvedresolution: fixedversions: + Python 3.4, - Python 3.3
2013-02-16 23:42:25 python-dev set nosy: + python-devmessages: +
2012-06-07 07:36:27 eric.snow set files: + issue15022_pickle.diffversions: + Python 3.3messages: + keywords: + needs review, patchstage: needs patch -> patch review
2012-06-07 03:37:40 eric.snow create