summaryrefslogtreecommitdiff
path: root/Python/marshal.c
AgeCommit message (Collapse)AuthorLines
1997-07-26Plugged a leak. (The same as the one plugged in compile.c -- forgotGuido van Rossum-0/+1
to free lnotab).
1997-05-22PyFile_WriteString now returns an error indicator instead of callingGuido van Rossum-2/+2
PyErr_Clear(). Add checking of those errors.
1997-04-29Quickly renamed the remaining files -- this directory is done.Guido van Rossum-156/+161
1997-03-14New form of PyFPE_END_PROTECT macro.Guido van Rossum-3/+3
1997-02-14Changes for Lee Busby's SIGFPE patch set.Guido van Rossum-1/+9
New file pyfpe.c and exception FloatingPointError. Surround some f.p. operations with PyFPE macro brackets.
1997-02-14Keep gcc -Wall happy.Guido van Rossum-1/+1
1997-01-24Marshal the line number table of code objects.Guido van Rossum-1/+9
1997-01-17Marshal the new stacksize item in code objects.Guido van Rossum-1/+3
1996-12-10Better way to handle 64-bit ints, keeping gcc -Wall happy.Guido van Rossum-30/+18
Tested with AMK's help.
1996-12-05Tentative changes to make this work better on 64-bit machines.Guido van Rossum-3/+66
A plain int that doesn't fit in 32 bits will be marshalled using a new type. 32 bits machines can't handle this and will issue a warning.
1996-10-25New permission notice, includes CNRI.Guido van Rossum-12/+19
1996-10-11Ellipses -> Ellipsis rename (the dictionary really says that it shouldGuido van Rossum-6/+6
be Ellipsis!). Bumped the API version because a linker-visible symbol is affected. Old C code will still compile -- there's a b/w compat macro. Similarly, old Python code will still run, builtin exports both Ellipses and Ellipsis.
1996-08-19Added *PyMarshal_WriteObjectToString() (moved the relevant code thereGuido van Rossum-18/+25
from marshal_loads()).
1996-07-30Changes for slice and ellipsesGuido van Rossum-0/+7
1996-07-21Py_complex; and WITHOUT_COMPLEX added to getargs.cGuido van Rossum-1/+1
1996-06-26Jeremy's patches for more robust handling of unmarshallable types.Guido van Rossum-5/+22
1996-05-28Plug memory leak (variable names in code objects were being leaked!)Guido van Rossum-0/+1
1996-01-12changes for complex numbersGuido van Rossum-0/+47
1995-10-27Made a bit more robust against out-of-memory situationsJack Jansen-12/+35
1995-08-28rd_object() with exception is fatal errorGuido van Rossum-0/+1
1995-07-18keyword arguments and faster callsGuido van Rossum-3/+13
1995-03-09various tuple related optimizations; remove unused b/w compat code from ceval.cGuido van Rossum-9/+18
1995-02-17hope to fix DEC Alpha gcc problems by declaring ints instead of longsGuido van Rossum-9/+9
1995-01-04Added 1995 to copyright message.Guido van Rossum-2/+2
bltinmodule.c: fixed coerce() nightmare in ternary pow(). modsupport.c (initmodule2): pass METH_FREENAME flag to newmethodobject(). pythonrun.c: move flushline() into and around print_error().
1995-01-02Lots of changes, most minor (fatal() instead of abort(), use ofGuido van Rossum-0/+8
err_fetch/err_restore and so on). But... NOTE: import.c has been rewritten and all the DL stuff is now in the new file importdl.c.
1994-10-05Plug memory leak for code objectsGuido van Rossum-0/+1
1994-08-30Merge back to main trunkGuido van Rossum-16/+3
1993-07-05* Makefile: added all: and default: targets.Guido van Rossum-1/+0
* many files: made some functions static; removed "extern int errno;". * frozenmain.c: fixed bugs introduced on 24 June... * flmodule.c: remove 1.5 bw compat hacks, add new functions in 2.2a (and some old functions that were omitted). * timemodule.c: added MSDOS floatsleep version . * pgenmain.c: changed exit() to goaway() and added defn of goaway(). * intrcheck.c: add hack (to UNIX only) so interrupting 3 times will exit from a hanging program. The second interrupt prints a message explaining this to the user.
1993-05-19Several changes in one:Guido van Rossum-9/+6
(1) dictionaries/mappings now have attributes values() and items() as well as keys(); at the C level, use the new function mappinggetnext() to iterate over a dictionary. (2) "class C(): ..." is now illegal; you must write "class C: ...". (3) Class objects now know their own name (finally!); and minor improvements to the way how classes, functions and methods are represented as strings. (4) Added an "access" statement and semantics. (This is still experimental -- as long as you don't use the keyword 'access' nothing should be changed.)
1993-04-01Support for frozen scripts; added -i option.Guido van Rossum-1/+15
1993-03-29* Changed all copyright messages to include 1993.Guido van Rossum-1/+3
* Stubs for faster implementation of local variables (not yet finished) * Added function name to code object. Print it for code and function objects. THIS MAKES THE .PYC FILE FORMAT INCOMPATIBLE (the version number has changed accordingly) * Print address of self for built-in methods * New internal functions getattro and setattro (getattr/setattr with string object arg) * Replaced "dictobject" with more powerful "mappingobject" * New per-type functio tp_hash to implement arbitrary object hashing, and hashobject() to interface to it * Added built-in functions hash(v) and hasattr(v, 'name') * classobject: made some functions static that accidentally weren't; added __hash__ special instance method to implement hash() * Added proper comparison for built-in methods and functions
1993-01-21Added separate main program for the Mac: macmain.cGuido van Rossum-95/+256
stdwinmodule.c: wsetfont can now return an error Makefile: add CL_USE and CL_LIB*S; config.c: move CL part around New things in imgfile; also in Makefile. longobject.c: fix comparison of negative long ints... [REAL BUG!] marshal.c: add dumps() and loads() to read/write strings timemodule.c: make sure there's always a floatsleep() posixmodule.c: rationalize struct returned by times() Makefile: add test target, disable imgfile by default thread.c: Improved coexistance with dl module (sjoerd) stdwinmodule.c: Change include stdwin.h if macintosh rotormodule.c: added missing last argument to RTR_?_region calls confic.c: merged with configmac.c, added 1993 to copyright message fileobject.c: int compared to NULL in writestring(); change fopenRF ifdef timemodule.c: simplify times() using mkvalue; include myselect.h earlier (for sequent). posixmodule: for sequent, include unistd.h instead of explicit extern definitions and don't define rename() Makefile: change misleading/wrong MD5 comments
1992-04-05Copyright for 1992 addedGuido van Rossum-1/+1
1992-03-27Shut up lint.Guido van Rossum-2/+2
1991-12-10Use new exceptions.Guido van Rossum-6/+6
1991-08-16Use dict2lookup.Guido van Rossum-1/+1
1991-06-07Add marshalling for dictionaries.Guido van Rossum-1/+33
1991-06-04Declare errno, for prehistoric systems.Guido van Rossum-0/+1
1991-06-04Initial revisionGuido van Rossum-0/+340