Roundup Robot added the comment:
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
--
nosy: +python-dev
___
Python
Changes by Eric Snow ericsnowcurren...@gmail.com:
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
versions: +Python 3.4 -Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15022
Roundup Robot added the comment:
New changeset e4c065b2db49 by Eric Snow in branch 'default':
Issue #15022: Ensure all pickle protocols are supported.
http://hg.python.org/cpython/rev/e4c065b2db49
--
___
Python tracker rep...@bugs.python.org
Eric Snow ericsnowcurren...@gmail.com added the comment:
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
New submission from Eric Snow ericsnowcurren...@gmail.com:
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.
--
messages: 162453
nosy: eric.snow
priority: normal
severity: normal
stage: needs patch