summaryrefslogtreecommitdiff
path: root/Python/compile.c
AgeCommit message (Expand)AuthorLines
2001-09-07SF bug [#458941] Looks like a unary minus bug.Tim Peters-16/+49
2001-08-30When re-writing a factor containing a unary negation of a literal, onlyFred Drake-0/+3
2001-08-30Removed unreachable goto statement to silence SGI compiler.Sjoerd Mullender-1/+0
2001-08-27If an integer constant can't be generated from an integer literalJeremy Hylton-5/+2
2001-08-17Patch #445762: Support --disable-unicodeMartin v. Löwis-13/+25
2001-08-14Fix SF bug [ #450909 ] __future__.division fails at promptJeremy Hylton-2/+6
2001-08-12SF Patch [ 429024 ] deal with some unary ops at compile timeJeremy Hylton-3/+66
2001-08-11Remove st_nested_scopes from struct symtable,Jeremy Hylton-128/+44
2001-08-11st_nested_scopes was uninitialized trash. Jeremy should fix in a betterTim Peters-0/+6
2001-08-10Refactor future feature handlingJeremy Hylton-27/+4
2001-08-08Implement PEP 238 in its (almost) full glory.Guido van Rossum-4/+25
2001-08-06Another bug fix for recent import * warning (caught by Thomas Wouters)Jeremy Hylton-3/+3
2001-08-06Fix error message for import * in function/class scopeJeremy Hylton-1/+1
2001-08-06Fix SF bug [ #445474 ] warn about import * inside functionsJeremy Hylton-0/+5
2001-07-16jcompile(): inherit the CO_GENERATOR_ALLOWED flag from the 'base'Guido van Rossum-0/+1
2001-07-16Part way to allowing "from __future__ import generators" to communicateTim Peters-4/+13
2001-06-28Another "if 0:" hack, this time to complain about otherwise invisibleTim Peters-2/+61
2001-06-26SF bug #436207: "if 0: yield x" is ignored.Tim Peters-1/+33
2001-06-23Change the semantics of "return" in generators, as discussed on theTim Peters-25/+10
2001-06-23Disallow 'yield' in a 'try' block when there's a 'finally' clause.Tim Peters-0/+10
2001-06-18Merging the gen-branch into the main line, at Guido's direction. Yay!Tim Peters-9/+51
2001-06-09SF bug 430991: wrong co_lnotabTim Peters-10/+54
2001-05-09SF patch #416249, from Mark Favas: 2.1c1 compile: unused vrbl cleanupTim Peters-2/+0
2001-05-08Several small changes. Mostly reformatting, adding parens.Jeremy Hylton-10/+11
2001-04-27Fix 2.1 nested scopes crash reported by Evan SimpsonJeremy Hylton-6/+20
2001-04-20Iterators phase 1. This comprises:Guido van Rossum-18/+6
2001-04-14Make some private symbols static.Guido van Rossum-1/+2
2001-04-09Warn when assigning to __debug__ instead of raising an error.Jeremy Hylton-7/+2
2001-03-23Make it illegal to assign to __debug__ as per Guido's request.Jeremy Hylton-1/+12
2001-03-22Set the line number correctly for a nested function with an exec orJeremy Hylton-2/+5
2001-03-22Make error messages clearer for illegal combinations of nestedJeremy Hylton-15/+36
2001-03-22If a code object is compiled with nested scopes, define the CO_NESTED flag.Jeremy Hylton-0/+2
2001-03-21Update PyNode_CompileSymtable() to understand future statementsJeremy Hylton-9/+15
2001-03-21Fix PyFrame_FastToLocals() and counterpart to deal with cells andJeremy Hylton-51/+69
2001-03-20Fixup handling of free variables in methods when the class scope alsoJeremy Hylton-3/+12
2001-03-19Fix crashes in nested list comprehensionsJeremy Hylton-8/+10
2001-03-02Refactored the warning-issuing code more.Guido van Rossum-11/+17
2001-03-01Useful future statement support for the interactive interpreterJeremy Hylton-11/+27
2001-03-01Fix core dump in example from Samuele Pedroni:Jeremy Hylton-15/+31
2001-03-01Don't add global names to st->st_global if we're already iteratingJeremy Hylton-6/+15
2001-02-28undo introduction of st_global_starJeremy Hylton-3/+0
2001-02-28Warn about global statement at the module level.Jeremy Hylton-2/+17
2001-02-28Add warning/error handlin for problematic nested scopes cases asJeremy Hylton-26/+119
2001-02-28Let's have some sanity. Introduce a helper to issue a symbol tableGuido van Rossum-16/+17
2001-02-28Use the new PyErr_WarnExplicit() API to issue better warnings forGuido van Rossum-12/+21
2001-02-28Improve SyntaxErrors for bad future statements. Set file and locationJeremy Hylton-84/+6
2001-02-28Print the offending line of code in the traceback for SyntaxErrorsJeremy Hylton-30/+95
2001-02-28Presumed correct compiler pass for future statementsJeremy Hylton-4/+30
2001-02-27Improved __future__ parser; still more to doJeremy Hylton-43/+5
2001-02-27Add warnings about undefined "global"Jeremy Hylton-0/+29