commit | 0ad0812edb3b4023f3e410243c007fba3f84a9ff | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Wed Apr 11 04:37:43 2007 +0000 |
committer | Guido van Rossum <guido@python.org> | Wed Apr 11 04:37:43 2007 +0000 |
tree | 23d6a6d06f6cbebbf8cf0f54508b68dc826ff791 | |
parent | 9b76da6a8f93c0211a97187f000b693d0cdc6638 [diff] |
An example of action-at-a-distance: fix the problems I had in test_io.py without touching io.py or test_io.py. The cause of the failure was that bytes objects didn't pickle right. As a stop-gap measure, I'm providing bytes pickling via copy_reg. Eventually, we should use a more efficient protocol, e.g. __reduce_ex__ or __getstate__/__setstate__.