Don't save Curve._hooke when pickling or deepcopying.
authorW. Trevor King <wking@drexel.edu>
Mon, 16 Aug 2010 18:59:27 +0000 (14:59 -0400)
committerW. Trevor King <wking@drexel.edu>
Mon, 16 Aug 2010 18:59:27 +0000 (14:59 -0400)
commit95bdc8c6b5b9f111aab92bdbc652feadb06d9a9b
treec67000d44c320925cadf1d439127cc6276a25df3
parenta14bee95bac8939e0c02e20944280e58832cd50a
Don't save Curve._hooke when pickling or deepcopying.

Two reasons:
1) It crashes because hooke.config._comment_textwrap contains a
   compiled regexp, and these cannot be deepcopied.  See
     http://mail.python.org/pipermail/python-dev/2008-November/083348.html
     http://bugs.python.org/issue416670
2) We don't want to copy Hooke instances anyway, since we need them to stay
   in sync.  Anything copying curves (e.g. Playlist.filter) should shallow
   copy Hooke instances between the curves.
If this turns up anywhere else, we should think about adding a
Curve.copy method to get the "just right" copy depth ;).
hooke/curve.py