| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|\ \
| |/
| |
| | |
error messages and comments.
|
| |
| |
| |
| | |
error messages and comments.
|
| | |
|
| |
| |
| |
| | |
ModuleNotFoundError.
|
|\ \
| |/ |
|
| |
| |
| |
| | |
to correctly process the opcode when it is used on non-list objects.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The C version tried to remove trailing whitespace between the last quote and
the newline character. I am not sure why it had this because pickle never
generated such pickles---for this to happen repr(some_string) would need to
return trailing whitespace. It was maybe there to make it easier for people
to write pickles in text editors. Anyhow, the Python version doesn't do this
so there is no point keeping this around anymore.
Also, I've changed the exception raised when a bad pickle is encountered.
Again this unlikely to make much difference to anyone though it does make
testing slightly nicer for us.
|
|\ \
| |/ |
|
| | |
|
| | |
|
|/ |
|
|\
| |
| |
| |
| |
| | |
lengths as unsigned 32-bit integers, like the C implementation does.
Patch by Serhiy Storchaka.
|
| |
| |
| |
| |
| |
| | |
lengths as unsigned 32-bit integers, like the C implementation does.
Patch by Serhiy Storchaka.
|
| |
| |
| |
| | |
Thanks for James Sanders for the bug report and the patch.
|
| |
| |
| |
| |
| |
| | |
attribute which allows to set custom per-pickler reduction functions.
Patch by sbt.
|
|\ \
| |/ |
|
| |
| |
| |
| | |
Initial patch by sbt.
|
| | |
|
| | |
|
|\ \
| |/ |
|
| | |
|
|\ \
| |/
| |
| |
| | |
metaclass is registered with copyreg. Patch by Nicolas M. Thiéry and
Craig Citro.
|
| |
| |
| |
| |
| | |
metaclass is registered with copyreg. Patch by Nicolas M. Thiéry and
Craig Citro.
|
|\ \
| |/
| |
| | |
the C pickle implementation.
|
| |
| |
| |
| | |
the C pickle implementation.
|
|/ |
|
|
|
|
|
| |
speedups up to 4x (depending on the benchmark). Mostly ported from
Unladen Swallow; initial patch by Alexandre Vassalotti.
|
|
|
|
| |
the first object in the pickle file.
|
|
|
|
| |
python when they contain instances of old-style classes.
|
|
|
|
|
| |
encoding unicode as utf8 to support lone surrogates and stay compatible with
Python 2.x and 3.0
|
| |
|
|
|
|
|
|
| |
or dumping pickles with a 2.x-compatible protocol, in order to make data
sharing and migration easier. This behaviour can be disabled using the
new `fix_imports` optional argument.
|
|
|
|
| |
This matches the behaviour implmented in _pickle.
|
|
|
|
|
|
|
|
|
|
|
|
| |
svn+ssh://pythondev@svn.python.org/python/trunk
........
r72223 | antoine.pitrou | 2009-05-02 23:13:23 +0200 (sam., 02 mai 2009) | 5 lines
Isue #5084: unpickling now interns the attribute names of pickled objects,
saving memory and avoiding growth in size of subsequent pickles. Proposal
and original patch by Jake McGuire.
........
|
|
|
|
|
|
| |
'L' opcode always appends an 'L' on output, just as 2.x does. When
unpickling, remove the trailing 'L' (if present) before passing the
result to PyLong_FromString.
|
| |
|
|
|
|
| |
Add an initialization check to mimic the interface of _pickle.
|
| |
|
|
|
|
|
|
|
|
| |
........
r67002 | hirokazu.yamamoto | 2008-10-23 09:37:33 +0900 | 1 line
Issue #4183: Some tests didn't run with pickle.HIGHEST_PROTOCOL.
........
|
|
|
|
| |
Pickler does not read anything from the given file.
|
|
|
|
|
| |
Removed Windows support temporarily.
64bit bug with integer unpickling is now fixed.
|
| |
|
| |
|
| |
|
|
|
|
| |
an iterable object, instead of an iterator.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Updated documentation.
Merged revisions 63042 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r63042 | alexandre.vassalotti | 2008-05-11 04:25:28 -0400 (Sun, 11 May 2008) | 5 lines
Added module stub for copy_reg renaming in 3.0.
Renamed copy_reg to copyreg in the standard library, to avoid
spurious warnings and ease later merging to py3k branch. Public
documentation remains intact.
........
|
|
|
|
|
|
| |
memoryview objects have a different API (such as for indexing) than
bytes and bytesarray objects, so memoryview objects shouldn't be
treated blindly as "bytes" objects.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
for bytes. This is the default protocol. It intentionally cannot
be unpickled by Python 2.x.
- When a pickle written by Python 2.x contains an (8-bit) str
instance, this is now decoded to a (Unicode) str instance. The
encoding used to do this defaults to ASCII, but can be overridden
via two new keyword arguments to the Unpickler class. Previously
this would create bytes instances, which is usually wrong: str
instances are often used to pickle attribute names etc., and text is
more common than binary data anyway.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
No detailed change log; just check out the change log for the py3k-pep3137
branch. The most obvious changes:
- str8 renamed to bytes (PyString at the C level);
- bytes renamed to buffer (PyBytes at the C level);
- PyString and PyUnicode are no longer compatible.
I.e. we now have an immutable bytes type and a mutable bytes type.
The behavior of PyString was modified quite a bit, to make it more
bytes-like. Some changes are still on the to-do list.
|