Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | different spellings are just unacceptable | Benjamin Peterson | 2010-06-11 | 1 | -1/+1 |
| | |||||
* | Untabify C files. Will watch buildbots. | Antoine Pitrou | 2010-05-09 | 1 | -1220/+1220 |
| | |||||
* | Issue #2333: Backport set and dict comprehensions syntax. | Alexandre Vassalotti | 2010-01-11 | 1 | -9/+73 |
| | |||||
* | Issue #2335: Backport set literals syntax from Python 3.x. | Alexandre Vassalotti | 2010-01-09 | 1 | -0/+3 |
| | |||||
* | genexps have linenos | Benjamin Peterson | 2009-11-20 | 1 | -1/+1 |
| | |||||
* | provide line number for lambdas | Benjamin Peterson | 2009-11-20 | 1 | -2/+1 |
| | |||||
* | fix grammar | Benjamin Peterson | 2009-06-23 | 1 | -1/+1 |
| | |||||
* | remove tmpname support since it's no longer used | Benjamin Peterson | 2009-06-21 | 1 | -26/+0 |
| | |||||
* | don't need to add the name 'lambda' as assigned | Benjamin Peterson | 2009-06-21 | 1 | -2/+1 |
| | |||||
* | fix error handling | Benjamin Peterson | 2009-04-02 | 1 | -4/+7 |
| | |||||
* | Add check for PyDict_Update() error. | Jeremy Hylton | 2009-03-31 | 1 | -1/+2 |
| | |||||
* | Global statements from one function leaked into parallel functions. | Jeremy Hylton | 2009-03-31 | 1 | -22/+101 |
| | | | | | | | | | | | | | Re http://bugs.python.org/issue4315 The symbol table used the same name dictionaries to recursively analyze each of its child blocks, even though the dictionaries are modified during analysis. The fix is to create new temporary dictionaries via the analyze_child_block(). The only information that needs to propagate back up is the names of the free variables. Add more comments and break out a helper function. This code doesn't get any easier to understand when you only look at it once a year. | ||||
* | uhh PySTEntry->ste_unoptimized has to be exposed too | Benjamin Peterson | 2008-08-17 | 1 | -0/+1 |
| | |||||
* | expose PySTEntry.nested so the symtable module will work | Benjamin Peterson | 2008-08-17 | 1 | -0/+1 |
| | |||||
* | PySTEntry's constructor is static; there's no point in a fancy API name | Benjamin Peterson | 2008-08-16 | 1 | -4/+4 |
| | |||||
* | include filename and line number in SyntaxError | Benjamin Peterson | 2008-08-16 | 1 | -0/+3 |
| | |||||
* | This reverts r63675 based on the discussion in this thread: | Gregory P. Smith | 2008-06-09 | 1 | -14/+14 |
| | | | | | | | http://mail.python.org/pipermail/python-dev/2008-June/079988.html Python 2.6 should stick with PyString_* in its codebase. The PyBytes_* names in the spirit of 3.0 are available via a #define only. See the email thread. | ||||
* | Renamed PyString to PyBytes | Christian Heimes | 2008-05-26 | 1 | -14/+14 |
| | |||||
* | Patch #2511: Give the "excepthandler" AST item proper attributes by making ↵ | Georg Brandl | 2008-03-30 | 1 | -5/+5 |
| | | | | it a Sum. | ||||
* | Handle memory allocation failure. Found by Adam Olsen | Neal Norwitz | 2008-03-15 | 1 | -2/+3 |
| | |||||
* | Patch #1759: Backport of PEP 3129 class decorators | Christian Heimes | 2008-02-23 | 1 | -2/+4 |
| | | | | with some help from Georg | ||||
* | PEP 3123: Provide forward compatibility with Python 3.0, while keeping | Martin v. Löwis | 2007-07-21 | 1 | -2/+1 |
| | | | | | backwards compatibility. Add Py_Refcnt, Py_Type, Py_Size, and PyVarObject_HEAD_INIT. | ||||
* | Handle PyString_FromInternedString() failing (unlikely, but possible). | Neal Norwitz | 2006-08-19 | 1 | -9/+8 |
| | | | | | | Klocwork #325 (I'm not backporting this, but if someone wants to, feel free.) | ||||
* | Klocwork made another run and found a bunch more problems. | Neal Norwitz | 2006-08-12 | 1 | -1/+6 |
| | | | | | | | This is the first batch of fixes that should be easy to verify based on context. This fixes problem numbers: 220 (ast), 323-324 (symtable), 321-322 (structseq), 215 (array), 210 (hotshot), 182 (codecs), 209 (etree). | ||||
* | Handle more mem alloc issues found with failmalloc | Neal Norwitz | 2006-07-23 | 1 | -0/+2 |
| | |||||
* | Fix more memory allocation issues found with failmalloc. | Neal Norwitz | 2006-07-22 | 1 | -1/+1 |
| | |||||
* | Handle more memory allocation failures without crashing. | Neal Norwitz | 2006-07-21 | 1 | -2/+10 |
| | |||||
* | Patch #1346214: correctly optimize away "if 0"-style stmts | Georg Brandl | 2006-06-04 | 1 | -1/+20 |
| | | | | (thanks to Neal for review) | ||||
* | Make symtable.c safe for C++ compilers. Changed macros in the same way as | Anthony Baxter | 2006-04-12 | 1 | -11/+13 |
| | | | | compile.c to add a cast. | ||||
* | No need to export PySTEntry_New, it is only used in symtable.c | Neal Norwitz | 2006-02-28 | 1 | -1/+2 |
| | |||||
* | PEP 343 -- the with-statement. | Guido van Rossum | 2006-02-27 | 1 | -14/+30 |
| | | | | | | | | | | | | | 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/+5 |
| | | | | | | | | | | | | | | | | | | | | | | | | | 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 ;) | ||||
* | Use Py_ssize_t to count the | Martin v. Löwis | 2006-02-16 | 1 | -1/+1 |
| | |||||
* | Merge ssize_t branch. | Martin v. Löwis | 2006-02-15 | 1 | -3/+5 |
| | |||||
* | analyze_cells(): This no longer compiled under VC 7.1. | Tim Peters | 2006-01-08 | 1 | -1/+2 |
| | | | | Move declaration of local `flags` to top of block. | ||||
* | Fix icc warnings: conversion from "long" to "int" may lose significant bits | Neal Norwitz | 2006-01-08 | 1 | -10/+11 |
| | |||||
* | Fix icc warnings: shadowing local variable (i) and complex is set but not ↵ | Neal Norwitz | 2006-01-07 | 1 | -3/+2 |
| | | | | used, so remove | ||||
* | Bug #889500, fix line number on SyntaxWarning for global declarations. | Neal Norwitz | 2005-12-19 | 1 | -7/+10 |
| | |||||
* | Fix a few more ref leaks. Backport candidate | Neal Norwitz | 2005-11-24 | 1 | -1/+3 |
| | |||||
* | Last batch of ref leaks in new AST code. | Neal Norwitz | 2005-11-19 | 1 | -4/+8 |
| | | | | | | Also converted a bunch of assert(0) to SystemError's. There are still printfs, etc that need to be cleaned up. | ||||
* | Bring handling of genexpr in line with other anonymous scope names | Nick Coghlan | 2005-11-16 | 1 | -4/+3 |
| | |||||
* | Fix a lot of memory and ref leaks in error paths. | Neal Norwitz | 2005-11-13 | 1 | -33/+75 |
| | | | | | | (Call symtable_exit_block or compiler_exit_scope as appropriate) Use PyMem_Free on c_future since it was allocated with PyMem_Malloc | ||||
* | Do not pollute name block_ty, prefix with _Py_ | Neal Norwitz | 2005-10-24 | 1 | -3/+3 |
| | |||||
* | Fix check_unoptimized() function. The only optimized namespaces are | Neil Schemenauer | 2005-10-23 | 1 | -1/+1 |
| | | | | | in function blocks. This elimiates spurious warnings about "import *" and related statements at the class level. | ||||
* | Fix private name mangling. The symtable also must do mangles so that | Neil Schemenauer | 2005-10-23 | 1 | -14/+30 |
| | | | | the scope of names can be correctly determined. | ||||
* | Fix a bunch of imports to use code.h instead of compile.h. | Jeremy Hylton | 2005-10-21 | 1 | -1/+0 |
| | | | | Remove duplicate declarations from compile.h | ||||
* | ANSI-C-ify the placement of local var declarations. | Armin Rigo | 2005-10-21 | 1 | -2/+4 |
| | |||||
* | Merge ast-branch to head | Jeremy Hylton | 2005-10-20 | 1 | -63/+1178 |
| | | | | | | | | | | This change implements a new bytecode compiler, based on a transformation of the parse tree to an abstract syntax defined in Parser/Python.asdl. The compiler implementation is not complete, but it is in stable enough shape to run the entire test suite excepting two disabled tests. | ||||
* | SF patch #872326: Generator expression implementation | Raymond Hettinger | 2004-05-19 | 1 | -0/+2 |
| | | | | | | | | | | | | | | (Code contributed by Jiwon Seo.) The documentation portion of the patch is being re-worked and will be checked-in soon. Likewise, PEP 289 will be updated to reflect Guido's rationale for the design decisions on binding behavior (as described in in his patch comments and in discussions on python-dev). The test file, test_genexps.py, is written in doctest format and is meant to exercise all aspects of the the patch. Further additions are welcome from everyone. Please stress test this new feature as much as possible before the alpha release. | ||||
* | Fix for SF [ 734869 ] Lambda functions in list comprehensions | Jeremy Hylton | 2003-05-21 | 1 | -0/+1 |
| | | | | | | The compiler was reseting the list comprehension tmpname counter for each function, but the symtable was using the same counter for the entire module. Repair by move tmpname into the symtable entry. Bugfix candidate. |