[issue1515] deepcopy doesn't copy instance methods

Robert Collins report at bugs.python.org
Fri Nov 27 10:54:49 CET 2009


Robert Collins <robertc at robertcollins.net> added the comment:

Ran into this trying to do some test isolation stuff.

Notwithstanding the questions about 'why', this is a clear limitation
hat can be solved quite simply - is there any harm that will occur if we
fix it?

I've attached a patch, with a test (in the style of the current tests)
which shows the copy works correctly.

----------
keywords: +patch
nosy: +rbcollins
Added file: http://bugs.python.org/file15405/issue1515.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1515>
_______________________________________


More information about the Python-bugs-list mailing list