summaryrefslogtreecommitdiff
path: root/Python/compile.c
AgeCommit message (Collapse)AuthorLines
1997-10-20Don't use sscanf(s, "%x", &c) to parse \xX... escapes; hardcode it.Guido van Rossum-3/+10
1997-10-08Fixed for WITHOUT_COMPLEX compilation (Jack)Guido van Rossum-1/+2
1997-08-29Cprrect stuoid tyops -- was comparing variabes with themselves becauseGuido van Rossum-3/+3
of co/cp mixup.
1997-07-25Plug a leak in code_dealloc() (and reordered the deallocs to match theGuido van Rossum-3/+2
order of the variables in the declarations). Also removed an entry in the TODO list that's done.
1997-07-10Fix bug reported by Just: anonymous arguments used for tuples shouldGuido van Rossum-1/+3
have a unique name, otherwise they get squished by locals2fast (or fast2locals, I dunno) when the debugger is invoked before they have been transferred to real locals.
1997-05-23PyObject_Compare can raise an exception now.Guido van Rossum-1/+2
1997-05-20Indent the #error directives so a classic K&R cpp doesn't see them.Guido van Rossum-3/+3
1997-05-09Get rid of obsolete support for access statement.Guido van Rossum-67/+0
1997-05-07Instead of importing graminit.h whenever one of the three grammar 'root'Guido van Rossum-0/+14
symbols is needed, define these in Python.h with a Py_ prefix.
1997-04-29Quickly renamed the remaining files -- this directory is done.Guido van Rossum-312/+331
1997-04-09Tweaks to keep the Microsoft compiler quier.Guido van Rossum-1/+4
1997-04-06Support for alternative string quotes (a"xx", b"xx", c"xx", ...).Guido van Rossum-3/+6
In interactive mode, do generate code for single-string statements.
1997-04-02Added assert statement.Guido van Rossum-0/+45
1997-03-14New form of PyFPE_END_PROTECT macro.Guido van Rossum-2/+2
1997-03-11Fix dumb bug calling parsestrplus with wrong node as argument.Guido van Rossum-1/+3
Add prototypes for parsestr() and parsestrplus() (unrelated, but seemed to make sense.)
1997-03-11Added support for ``if __debug__:'' -- if -O is given, this form isGuido van Rossum-2/+90
recognized by the code generator and code generation for the test and the subsequent suite is suppressed. One must write *exactly* ``if __debug__:'' or ``elif __debug__:'' -- no parentheses or operators must be present, or the optimization is not carried through. Whitespace doesn't matter. Other uses of __debug__ will find __debug__ defined as 0 or 1 in the __builtin__ module.
1997-03-03Add global Py_OptimizeFlag. SET_LINENO is omitted again unless this isGuido van Rossum-4/+7
nonzero.
1997-02-14Changes for Lee Busby's SIGFPE patch set.Guido van Rossum-2/+9
New file pyfpe.c and exception FloatingPointError. Surround some f.p. operations with PyFPE macro brackets.
1997-01-24Instead of emitting SET_LINENO instructions, generate a line numberGuido van Rossum-6/+102
table which is incorporated in the code object. This way, the runtime overhead to keep track of line numbers is only incurred when an exception has to be reported.
1997-01-18Remove unused variable.Guido van Rossum-1/+0
1997-01-18Intern all names and varnames in newcodeobject(), plus those stringGuido van Rossum-7/+22
literals that look like identifiers. Also intern all strings used as names during the compilation.
1997-01-17Add co_stacksize field to codeobject structure, and stacksize argumentGuido van Rossum-62/+253
to PyCode_New() argument list. Move MAXBLOCKS constant to conpile.h. Added accurate calculation of the actual stack size needed by the generated code. Also commented out all fprintf statements (except for a new one to diagnose stack underflow, and one in #ifdef'ed out code), and added some new TO DO suggestions (now that the stacksize is taken of the TO DO list).
1997-01-06Check for duplicate keyword arguments at compile time.Guido van Rossum-12/+20
1996-12-05Keep gcc -Wall happy.Guido van Rossum-2/+1
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-1/+1
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-09-17Added line number to most compile-time error messages.Guido van Rossum-88/+90
1996-08-24Afterthough: leave both leading underscores in,Guido van Rossum-5/+5
so __spam becomes _ClassName__spam.
1996-08-24Oops need to mangle global statement separatelyGuido van Rossum-0/+7
1996-08-24Name mangling, what the heck!Guido van Rossum-3/+80
1996-08-12Disable support for access statementGuido van Rossum-2/+4
1996-08-08Removed unused var; added error check for ``lambda: x=1''.Guido van Rossum-1/+5
1996-07-30Changes for slice and ellipsesGuido van Rossum-64/+113
1996-07-21Py_complex; and WITHOUT_COMPLEX added to getargs.cGuido van Rossum-2/+2
1996-01-26only use 'j' for imaginary constantsGuido van Rossum-1/+1
1996-01-25Removed unused varJack Jansen-1/+0
1996-01-12changes for complex and power (**) operatorGuido van Rossum-30/+98
1995-10-08disable code generation for access statementGuido van Rossum-0/+2
1995-10-03Removed unused variablesJack Jansen-1/+0
1995-09-18fix bug with missing default for last arg (discovered by Tommy Burnette)Guido van Rossum-2/+3
1995-07-18keyword arguments and faster callsGuido van Rossum-206/+280
1995-07-073rd arg for raise; INCOMPLETE keyword parameter passing (currently ↵Guido van Rossum-22/+78
f(kw=value) is seen as f('kw', value))
1995-02-17fix typo (== for =) in assignmentGuido van Rossum-1/+1
1995-02-10use Py_CHARMASKGuido van Rossum-2/+2
1995-01-26added missing case to get_docstringGuido van Rossum-2/+10
1995-01-20fix mem leak (localmap in optimize)Guido van Rossum-0/+1
1995-01-07Two independent chages:Guido van Rossum-27/+156
(a) support import NAME.NAME...NAME; (b) support doc strings in modules, classes and function definitions
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-4/+4
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-11-10set name to <lambda> instead of None for lambdasGuido van Rossum-7/+2