mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
New version from Jim Fulton:
- New copyright. (Open source)
- Added new protocol for binary string pickles that
takes out unneeded puts:
p=Pickler()
p.dump(x)
p.dump(y)
thePickle=p.getvalue()
This has little or no impact on pickling time, but
often reduces unpickling time and pickle size, sometimes
significantly.
- Changed unpickler to use internal data structure instead
of list to reduce unpickling times by about a third.
- Many cleanups to get rid of obfuscated error handling
involving 'goto finally' and status variables.
- Extensive reGuidofication. (formatting :)
- Fixed binary floating-point pickling bug. 0.0 was not
pickled correctly.
- Now use binary floating point format when saving
floats in binary mode.
- Fixed some error message spelling error.
This commit is contained in:
parent
7d9b4133eb
commit
053b8dfcde
1 changed files with 1108 additions and 1170 deletions
2278
Modules/cPickle.c
2278
Modules/cPickle.c
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue