Staging
v0.5.1
v0.5.1
Revision d1f4984a9bb2e90d4fc473be1a169917277efa4d authored by Guido van Rossum on 10 December 1997, 23:40:18 UTC, committed by Guido van Rossum on 10 December 1997, 23:40:18 UTC
The attached patch adds the following behavior to the handling of REDUCE codes: - A user-defined type may have a __reduce__ method that returns a string rather than a tuple, in which case the object is saved as a global object with a name given by the string returned by reduce. This was a feature added to cPickle a long time ago. - User-defined types can now support unpickling without executing a constructor. The second value returned from '__reduce__' can now be None, rather than an argument tuple. On unpickling, if the second value returned from '__reduce__' during pickling was None, then rather than calling the first value returned from '__reduce__', directly, the '__basicnew__' method of the first value returned from '__reduce__' is called without arguments. I also got rid of a few of Chris' extra ()s, which he used to make python ifs look like C ifs.
1 parent 79f016a
File | Mode | Size |
---|---|---|
example_nt | ||
os2vacpp | ||
setup_nt | ||
src | ||
utils | ||
vc15_lib | ||
vc15_w31 | ||
vc5x | ||
wat_dos | ||
wat_os2 | ||
WinMain.c | -rw-r--r-- | 405 bytes |
_tkinter.def | -rw-r--r-- | 22 bytes |
config.c | -rw-r--r-- | 3.7 KB |
config.h | -rw-r--r-- | 12.2 KB |
dl_nt.c | -rw-r--r-- | 906 bytes |
dllbase_nt.txt | -rw-r--r-- | 1.5 KB |
getpathp.c | -rw-r--r-- | 11.3 KB |
import_nt.c | -rw-r--r-- | 2.3 KB |
make8x3.py | -rw-r--r-- | 2.2 KB |
makesrc.exe | -rw-r--r-- | 25.0 KB |
msvcrtmodule.c | -rwxr-xr-x | 3.9 KB |
py.ico | -rw-r--r-- | 766 bytes |
pyc.ico | -rw-r--r-- | 766 bytes |
pycon.ico | -rw-r--r-- | 766 bytes |
pyth_w31.def | -rw-r--r-- | 128 bytes |
python.mk | -rw-r--r-- | 242 bytes |
python.wpj | -rw-r--r-- | 409 bytes |
python15.wse | -rw-r--r-- | 30.9 KB |
python_exe.rc | -rw-r--r-- | 49 bytes |
python_nt.def | -rw-r--r-- | 6.8 KB |
python_nt.rc | -rw-r--r-- | 1.4 KB |
readme.txt | -rw-r--r-- | 8.5 KB |
testpy.py | -rw-r--r-- | 850 bytes |
vc40.mak | -rw-r--r-- | 116.3 KB |
Computing file changes ...