[Checkins] [zopefoundation/zodbpickle] 0a2788: Implement a bytes_as_strings pickler option

GitHub noreply at github.com
Mon Mar 4 17:10:08 UTC 2013


  Branch: refs/heads/master
  Home:   https://github.com/zopefoundation/zodbpickle
  Commit: 0a278895224baf2c286bad9d59f22b2bfd7d897c
      https://github.com/zopefoundation/zodbpickle/commit/0a278895224baf2c286bad9d59f22b2bfd7d897c
  Author: Marius Gedminas <marius at gedmin.as>
  Date:   2013-03-04 (Mon, 04 Mar 2013)

  Changed paths:
    M src/zodbpickle/pickle.py
    M src/zodbpickle/tests/pickletester.py
    M src/zodbpickle/tests/test_pickle.py

  Log Message:
  -----------
  Implement a bytes_as_strings pickler option

This is needed for ZODB, where we want to produce smaller pickles (every
Persistent object reference stores an 8-byte-long binary string).  We
also want noload() to be able to see these byte strings (currently
they're hidden by noload_reduce(), which doesn't handle the
codecs._encode calls normally produced by Python 3 pickles).

The C module (both of them) currently lacks implementation for this.





More information about the checkins mailing list