Skip to content

Instantly share code, notes, and snippets.

@mstefanro
mstefanro / pickle4-progress.txt
Created July 22, 2012 20:19
Progress in implementing pickle4
/----------------------------------------------------------------------------\
| Feature | pickle.py | _pickle.c |
|============================================================================|
| pickling of very large bytes and strings | Yes | Yes |
| better pickling of small strings and bytes | Yes | Yes |
| native pickling of sets and frozensets | Yes | Yes |
| self-referential sets | Yes | Yes |
| self-referential frozensets | Yes | Yes |
| removal of BINPUT opcode | Yes | Yes |
@mstefanro
mstefanro / func.diff
Created July 19, 2012 16:45
__func__ in cpython
diff -r 8b79603699e4 Include/descrobject.h
--- a/Include/descrobject.h Wed Jul 18 00:02:56 2012 +0300
+++ b/Include/descrobject.h Thu Jul 19 19:39:57 2012 +0300
@@ -69,6 +69,7 @@
PyDescr_COMMON;
struct wrapperbase *d_base;
void *d_wrapped; /* This can be any function pointer */
+ PyObject *d_module;
} PyWrapperDescrObject;
@mstefanro
mstefanro / pickle4-midterm-report.txt
Created July 10, 2012 22:33
pickle4 midterm report
Abstract
===============================================================================
As has been initially described in my proposal, my work until midterm involved
improving the python version of pickle with the suggestions in PEP 3154 [1].
The progress so far has been tagged in the picklev4 repository at [2], under
the tag pickle4-midterm.
Features