From 554b1b0f9cc281f4191c9773a2d879dc3e3c8279 Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Sat, 16 Nov 2013 19:10:10 +0100 Subject: [PATCH] Wording tweaks --- pep-3154.txt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pep-3154.txt b/pep-3154.txt index 1ef50aa05..4c29c0a38 100644 --- a/pep-3154.txt +++ b/pep-3154.txt @@ -106,8 +106,8 @@ as bound methods, is implemented in the multiprocessing module [5]_. The ``__qualname__`` attribute from :pep:`3155` makes it possible to lookup many more objects by name. Making the GLOBAL_STACK opcode accept -dot-separated names, or adding a special GETATTR opcode, would allow the -standard pickle implementation to support all those kinds of objects. +dot-separated names would allow the standard pickle implementation to +support all those kinds of objects. 64-bit opcodes for large objects -------------------------------- @@ -132,7 +132,7 @@ Calling __new__ with keyword arguments Currently, classes whose __new__ mandates the use of keyword-only arguments can not be pickled (or, rather, unpickled) [3]_. Both a new -special method (``__getnewargs_ex__`` ?) and a new opcode (NEWOBJEX ?) +special method (``__getnewargs_ex__`` ?) and a new opcode (NEWOBJ_EX ?) are needed. Better string encoding @@ -146,6 +146,9 @@ would make many pickles smaller. Summary of new opcodes ====================== +These reflect the state of the proposed implementation (thanks mostly +to Alexandre Vassalotti's work): + * ``SHORT_BINUNICODE``: push a utf8-encoded str object with a one-byte size prefix (therefore less than 256 bytes long).