Serhiy Storchaka added the comment: +1. Similar optimization is used in marshal. Added comments on Rietveld. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue27056> _______________________________________