Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix indentation of case and a Py_ssize_t issue. | Neal Norwitz | 2006-06-12 | 1 | -2/+2 |
| | |||||
* | Patch #1346214: correctly optimize away "if 0"-style stmts | Georg Brandl | 2006-06-04 | 1 | -14/+29 |
| | | | | (thanks to Neal for review) | ||||
* | Replace Py_BuildValue("OO") by PyTuple_Pack. | Georg Brandl | 2006-05-26 | 1 | -3/+3 |
| | |||||
* | Get rid of __context__, per the latest changes to PEP 343 and python-dev | Guido van Rossum | 2006-05-02 | 1 | -10/+3 |
| | | | | | | | | discussion. There are two places of documentation that still mention __context__: Doc/lib/libstdtypes.tex -- I wasn't quite sure how to rewrite that without spending a whole lot of time thinking about it; and whatsnew, which Andrew usually likes to change himself. | ||||
* | Introduce asdl_int_seq, to hold cmpop_ty. | Martin v. Löwis | 2006-04-13 | 1 | -10/+2 |
| | |||||
* | revert - breaks build of Python/ast.c w/ gcc | Skip Montanaro | 2006-04-13 | 1 | -2/+5 |
| | |||||
* | Use union to discriminate pointer types from enum/int types. | Skip Montanaro | 2006-04-13 | 1 | -5/+2 |
| | |||||
* | casting nastiness to make C++ compiler happy | Anthony Baxter | 2006-04-13 | 1 | -2/+10 |
| | |||||
* | per Jeremy's email, remove the _WITH_CAST versions of macros. g++ | Anthony Baxter | 2006-04-12 | 1 | -46/+24 |
| | | | | | still has errors from the casts of asdl_seq_GET to cmpop_ty, but otherwise it's C++ clean. | ||||
* | more low-hanging fruit to make code compile under a C++ compiler. Not | Anthony Baxter | 2006-04-11 | 1 | -54/+85 |
| | | | | | entirely happy with the two new VISIT macros in compile.c, but I couldn't see a better approach. | ||||
* | Use PyObject_* allocator since FutureFeatures is small | Neal Norwitz | 2006-04-10 | 1 | -1/+1 |
| | |||||
* | Fix some warnings on HP-UX when using cc/aCC | Neal Norwitz | 2006-04-10 | 1 | -4/+7 |
| | |||||
* | Generate line number table entries for except handlers. | Jeremy Hylton | 2006-04-04 | 1 | -0/+2 |
| | | | | Re-enable all the tests in test_trace.py except one. Still not sure that these tests test what they used to test, but they pass. One failing test seems to be caused by undocumented line number table behavior in Python 2.4. | ||||
* | Don't abbreviate ABS, use long name ABSOLUTE. | Neal Norwitz | 2006-04-03 | 1 | -2/+2 |
| | |||||
* | Expand comments on line numbers and blocks. | Jeremy Hylton | 2006-04-01 | 1 | -6/+21 |
| | | | | Reorder compiler_set_lineno() call for consistency. | ||||
* | Fix some missing checks after PyTuple_New, PyList_New, PyDict_New | Georg Brandl | 2006-03-17 | 1 | -1/+3 |
| | |||||
* | Fix SF bug #1448804 and ad a test to ensure that all subscript operations ↵ | Nick Coghlan | 2006-03-13 | 1 | -24/+29 |
| | | | | continue to be handled correctly | ||||
* | Um, I thought I'd already checked this in. | Guido van Rossum | 2006-03-10 | 1 | -3/+1 |
| | | | | | | | Anyway, this is the changes to the with-statement so that __exit__ must return a true value in order for a pending exception to be ignored. The PEP (343) is already updated. | ||||
* | SF bug 1442442: LIST_APPEND optimization got lost in the AST merge. | Neal Norwitz | 2006-03-03 | 1 | -3/+4 |
| | | | | Add it back. | ||||
* | Fix refleak if from __future__ import was not first | Neal Norwitz | 2006-03-02 | 1 | -0/+1 |
| | |||||
* | Update known issues to reflect reality | Neal Norwitz | 2006-03-02 | 1 | -4/+1 |
| | |||||
* | Patch #1440601: Add col_offset attribute to AST nodes. | Martin v. Löwis | 2006-03-01 | 1 | -2/+2 |
| | |||||
* | Tabify and reflow some long lines. | Jeremy Hylton | 2006-03-01 | 1 | -696/+702 |
| | | | | | Much of the peephole optimizer is now indented badly, but it's about to be revised anyway. | ||||
* | Generally inehrit codeflags that are in PyCF_MASK, instead of writing it out | Thomas Wouters | 2006-02-28 | 1 | -4/+4 |
| | | | | | in multiple places. This makes compile()/eval()/etc also inherit the absolute-import codeflag, like division and with-statement already were. | ||||
* | from __future__ import with_statement addon for 'with', mostly written by | Thomas Wouters | 2006-02-28 | 1 | -0/+2 |
| | | | | Neal. | ||||
* | SF patch #1438387, PEP 328: relative and absolute imports. | Thomas Wouters | 2006-02-28 | 1 | -0/+27 |
| | | | | | | | | | | | | | | | | | | | | | | | - IMPORT_NAME takes an extra argument from the stack: the relativeness of the import. Only passed to __import__ when it's not -1. - __import__() takes an optional 5th argument for the same thing; it __defaults to -1 (old semantics: try relative, then absolute) - 'from . import name' imports name (be it module or regular attribute) from the current module's *package*. Likewise, 'from .module import name' will import name from a sibling to the current module. - Importing from outside a package is not allowed; 'from . import sys' in a toplevel module will not work, nor will 'from .. import sys' in a (single-level) package. - 'from __future__ import absolute_import' will turn on the new semantics for import and from-import: imports will be absolute, except for from-import with dots. Includes tests for regular imports and importhooks, parser changes and a NEWS item, but no compiler-package changes or documentation changes. | ||||
* | Clarify C-style exception handling with proper label name. | Thomas Wouters | 2006-02-27 | 1 | -3/+3 |
| | |||||
* | Fix assertions. | Thomas Wouters | 2006-02-27 | 1 | -3/+3 |
| | |||||
* | PEP 343 -- the with-statement. | Guido van Rossum | 2006-02-27 | 1 | -4/+162 |
| | | | | | | | | | | | | | This was started by Mike Bland and completed by Guido (with help from Neal). This still needs a __future__ statement added; Thomas is working on Michael's patch for that aspect. There's a small amount of code cleanup and refactoring in ast.c, compile.c and ceval.c (I fixed the lltrace behavior when EXT_POP is used -- however I had to make lltrace a static global). | ||||
* | PEP 308 implementation, including minor refdocs and some testcases. It | Thomas Wouters | 2006-02-27 | 1 | -0/+26 |
| | | | | | | | | | | | | | | | | | | | | | | | | | breaks the parser module, because it adds the if/else construct as well as two new grammar rules for backward compatibility. If no one else fixes parsermodule, I guess I'll go ahead and fix it later this week. The TeX code was checked with texcheck.py, but not rendered. There is actually a slight incompatibility: >>> (x for x in lambda:0) Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: iteration over non-sequence changes into >>> (x for x in lambda: 0) File "<stdin>", line 1 (x for x in lambda: 0) ^ SyntaxError: invalid syntax Since there's no way the former version can be useful, it's probably a bugfix ;) | ||||
* | Merge ssize_t branch. | Martin v. Löwis | 2006-02-15 | 1 | -9/+13 |
| | |||||
* | Fix icc warnings: single bit fields should be unsigned, shadowing local ↵ | Neal Norwitz | 2006-01-07 | 1 | -16/+16 |
| | | | | variables | ||||
* | Adjust usage of compiler_use_new_block to its return type. | Martin v. Löwis | 2006-01-02 | 1 | -2/+2 |
| | |||||
* | fixed compilation with an ordinary C89 compiler | Fredrik Lundh | 2005-12-18 | 1 | -2/+1 |
| | |||||
* | Fix Armin's bug 1333982. He found it, he didn't created it :-) | Neal Norwitz | 2005-12-18 | 1 | -9/+1 |
| | | | | | | | | | | This code generated a C assertion: assert 1, ([s for s in x] + [s for s in x]) pass assert was completely broken, it needed to use the proper block. compiler_use_block() is now no longer used, so remove it. | ||||
* | Handle more error conditions with SystemError | Neal Norwitz | 2005-12-18 | 1 | -8/+22 |
| | |||||
* | Set MemoryError when alloc fails | Neal Norwitz | 2005-12-18 | 1 | -3/+11 |
| | |||||
* | Merge from ast-arena. This reduces the code in Python/ast.c by ~300 lines, | Neal Norwitz | 2005-12-17 | 1 | -11/+14 |
| | | | | simplifies a lot of error handling code, and fixes many memory leaks. | ||||
* | Simplify logic for handling import * | Neal Norwitz | 2005-12-06 | 1 | -6/+3 |
| | |||||
* | Fix a few more ref leaks. Backport candidate | Neal Norwitz | 2005-11-24 | 1 | -0/+2 |
| | |||||
* | Fix a few more memory leaks | Neal Norwitz | 2005-11-20 | 1 | -0/+3 |
| | | | | | Document more info about the benefits of configuring without pymalloc when running valgrind | ||||
* | Last batch of ref leaks in new AST code. | Neal Norwitz | 2005-11-19 | 1 | -25/+50 |
| | | | | | | Also converted a bunch of assert(0) to SystemError's. There are still printfs, etc that need to be cleaned up. | ||||
* | Correctly handle identifiers for anonymous scopes and align genexpr name ↵ | Nick Coghlan | 2005-11-16 | 1 | -11/+17 |
| | | | | with symtable.c | ||||
* | Fix a lot of memory and ref leaks in error paths. | Neal Norwitz | 2005-11-13 | 1 | -9/+35 |
| | | | | | | (Call symtable_exit_block or compiler_exit_scope as appropriate) Use PyMem_Free on c_future since it was allocated with PyMem_Malloc | ||||
* | make internal method static | Neal Norwitz | 2005-11-13 | 1 | -1/+1 |
| | |||||
* | Ensure that compiler_exit_scope() is called as necessary to free memory | Neil Schemenauer | 2005-10-25 | 1 | -10/+18 |
| | | | | | allocated by compiler_enter_scope(). Change return type for compiler_exit_scope() to be void. | ||||
* | Fix problem handling EXTENDED_ARGs from SF bug # 1333982 | Neal Norwitz | 2005-10-23 | 1 | -1/+30 |
| | |||||
* | cleanup a bit and reuse instrsize (instruction size). working towards ↵ | Neal Norwitz | 2005-10-23 | 1 | -30/+24 |
| | | | | fixing problems with EXTENDED_ARG | ||||
* | Remove unnecessary local variable. | Neil Schemenauer | 2005-10-23 | 1 | -3/+2 |
| | |||||
* | Fix private name mangling. The symtable also must do mangles so that | Neil Schemenauer | 2005-10-23 | 1 | -4/+16 |
| | | | | the scope of names can be correctly determined. |