[issue416670] MatchObjects not deepcopy()able
Andrew McNamara
report at bugs.python.org
Tue Nov 4 02:24:41 CET 2008
Andrew McNamara <andrewm at object-craft.com.au> added the comment:
One reason why this issue has been having less impact is that a bug in
some versions of the copy.py code meant it was ignoring the
__deepcopy__ stubs and using the pickle logic to copy _sre objects -
so, if you run the right python version, compiled regular expressions
and match objects deepcopy without problems.
On the 2.4 branch (release24-maint), changeset 38430 introduced the bug
that prevents the class __deepcopy__ exception-raising stubs being
found.
As an aside, I don't understand why the _sre objects should be
pickleable, but not deepcopy-able.
----------
nosy: +andrewmcnamara
versions: +Python 2.7 -Python 2.6
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue416670>
_______________________________________
More information about the Python-bugs-list
mailing list