]> granicus.if.org Git - python/commit
An example of action-at-a-distance: fix the problems I had in test_io.py
authorGuido van Rossum <guido@python.org>
Wed, 11 Apr 2007 04:37:43 +0000 (04:37 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 11 Apr 2007 04:37:43 +0000 (04:37 +0000)
commit0ad0812edb3b4023f3e410243c007fba3f84a9ff
tree23d6a6d06f6cbebbf8cf0f54508b68dc826ff791
parent9b76da6a8f93c0211a97187f000b693d0cdc6638
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__.
Lib/copy_reg.py
Lib/test/test_bytes.py