Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Real arena implementation | Jeremy Hylton | 2006-02-28 | 2 | -72/+84 |
| | | | | | Replace the toy arena implementation with a real one, based on allocating 8K chunks of memory by default. | ||||
* | George Yoshida points out that the special characters | Neal Norwitz | 2006-02-28 | 1 | -1/+1 |
| | | | | | from Tools/compiler/ast.txt are not used anywhere else in asttable.txt. So remove "\&". | ||||
* | Test case to cover subscription bug from SF 1333982 | Jeremy Hylton | 2006-02-28 | 2 | -0/+12 |
| | |||||
* | Wups, add NEWS item I'd written but not checked in. | Thomas Wouters | 2006-02-28 | 1 | -0/+6 |
| | |||||
* | SF patch #1438387, PEP 328: relative and absolute imports. | Thomas Wouters | 2006-02-28 | 20 | -74/+271 |
| | | | | | | | | | | | | | | | | | | | | | | | - 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. | ||||
* | markup glitch (spotted by George Yoshida) | Fredrik Lundh | 2006-02-28 | 1 | -1/+1 |
| | |||||
* | XXX something for amk's attention | Anthony Baxter | 2006-02-28 | 1 | -0/+1 |
| | |||||
* | Forgot to explain the effect of the new opcode. | Guido van Rossum | 2006-02-28 | 1 | -0/+1 |
| | | | | Sigh -- we really should have one place for all opcode metadata. | ||||
* | Generate return statement. | Martin v. Löwis | 2006-02-28 | 1 | -0/+1 |
| | |||||
* | Regenerate. | Martin v. Löwis | 2006-02-28 | 1 | -0/+2 |
| | |||||
* | Update the compiler package to compile the with-statement. | Guido van Rossum | 2006-02-28 | 3 | -1/+63 |
| | | | | Jeremy, please review! | ||||
* | Add generation of the version. | Martin v. Löwis | 2006-02-28 | 2 | -1/+7 |
| | |||||
* | Ignore resource file | Neal Norwitz | 2006-02-28 | 0 | -0/+0 |
| | |||||
* | Add support for version field on Modules | Martin v. Löwis | 2006-02-28 | 3 | -8/+29 |
| | |||||
* | Check the return code for PyErr_Warn() when warning about raising string | Brett Cannon | 2006-02-27 | 2 | -4/+9 |
| | | | | | exceptions. This was triggered when 'warnings' had a filter set to "error" that caught the string exception deprecation warning. | ||||
* | PyErr_ProgramText(): Grrrrrr. | Tim Peters | 2006-02-27 | 1 | -1/+1 |
| | | | | | | | | | | | In a Windows debug build, trying to open a file using an empty string as the name causes assertion death inside MS's C runtime code. We probably need to worm around that in many places. I'm worming around it here to stop the new test_with.py from assert-dying in the Windows debug build (it calls compile() with an empty string for "the file name", which indirectly leads to C-level code in Python trying to fopen("", "r")). | ||||
* | Finish removal of CO_GENERATOR_ALLOWED. | Neal Norwitz | 2006-02-27 | 2 | -1/+4 |
| | |||||
* | unconst. | Martin v. Löwis | 2006-02-27 | 1 | -2/+2 |
| | |||||
* | 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 | 23 | -731/+1768 |
| | | | | | | | | | | | | | 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). | ||||
* | Start of a source code unparser. | Martin v. Löwis | 2006-02-27 | 2 | -0/+164 |
| | |||||
* | Even though we don't currently use unicode or complex numbers in the test, | Neal Norwitz | 2006-02-27 | 1 | -3/+3 |
| | | | | | | be complete when when checking types. Yield cannot be tested outside a function, so add a comment to that effect. | ||||
* | Don't filter out OverflowWarning; should be a test failure if it is raised by | Brett Cannon | 2006-02-27 | 1 | -2/+1 |
| | | | | the interpreter in 2.5 . | ||||
* | Make or_test similar to test, not testlist. | Martin v. Löwis | 2006-02-27 | 1 | -1/+2 |
| | |||||
* | Skip over doc strings. | Martin v. Löwis | 2006-02-27 | 2 | -1/+10 |
| | |||||
* | Convert array.array.insert to use Py_ssize_t (like the rest already does.) | Thomas Wouters | 2006-02-27 | 1 | -2/+2 |
| | |||||
* | Fix parsing of subscriptlist. | Jeremy Hylton | 2006-02-27 | 1 | -4/+30 |
| | | | | | | | (Armin's SF bug report). d = {} d[1,] = 1 Now handled correctly | ||||
* | More unconsting. | Martin v. Löwis | 2006-02-27 | 9 | -62/+56 |
| | |||||
* | Patch 1413181, by Gabriel Becedillas. | Tim Peters | 2006-02-27 | 2 | -0/+10 |
| | | | | | | | | | PyThreadState_Delete(): if the auto-GIL-state machinery knows about the thread state, forget it (since the thread state is being deleted, continuing to remember it can't help, but can hurt if another thread happens to get created with the same thread id). I'll backport to 2.4 next. | ||||
* | And some more cleanup. | Thomas Wouters | 2006-02-27 | 1 | -2/+2 |
| | |||||
* | Clean up from-import handling. | Thomas Wouters | 2006-02-27 | 1 | -22/+21 |
| | |||||
* | unconst. | Martin v. Löwis | 2006-02-27 | 1 | -9/+9 |
| | |||||
* | Simplify ast_for_trailer() in anticipation of more changes. | Jeremy Hylton | 2006-02-27 | 1 | -17/+11 |
| | |||||
* | Trimmed trailing whitespace. | Tim Peters | 2006-02-27 | 1 | -1/+1 |
| | |||||
* | Add an entry for 308 | Neal Norwitz | 2006-02-27 | 1 | -0/+2 |
| | |||||
* | Fix old not-reading-pep-308-right artifact. | Thomas Wouters | 2006-02-27 | 1 | -1/+1 |
| | |||||
* | Revert backwards-incompatible const changes. | Martin v. Löwis | 2006-02-27 | 36 | -70/+71 |
| | |||||
* | Note version added for conditional expressions | Neal Norwitz | 2006-02-27 | 1 | -1/+1 |
| | |||||
* | Update for PEP 308 patch. | Thomas Wouters | 2006-02-27 | 1 | -3/+54 |
| | |||||
* | Handle testlist_safe and or_test like testlist. | Martin v. Löwis | 2006-02-27 | 1 | -2/+2 |
| | |||||
* | Alias non-terminals introduced for backwards compatibility. | Martin v. Löwis | 2006-02-27 | 1 | -0/+3 |
| | |||||
* | Fix assertion errors in debug build, brought on by PEP 308 patch. | Thomas Wouters | 2006-02-27 | 1 | -1/+1 |
| | |||||
* | Create _ast module. | Martin v. Löwis | 2006-02-27 | 7 | -221/+485 |
| | | | | Cleanup Python-ast.c generation. | ||||
* | Check for a not-found rlconf.h by testing for None. | Martin v. Löwis | 2006-02-27 | 1 | -1/+1 |
| | |||||
* | regenerated. please read PEP 306 when changing Python's grammar! | Anthony Baxter | 2006-02-27 | 1 | -37/+40 |
| | |||||
* | PEP 308 implementation, including minor refdocs and some testcases. It | Thomas Wouters | 2006-02-27 | 11 | -567/+803 |
| | | | | | | | | | | | | | | | | | | | | | | | | | 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 ;) | ||||
* | Avoid reinitializing the types twice. | Martin v. Löwis | 2006-02-27 | 2 | -0/+2 |
| | |||||
* | Stop generating empty arrays. | Martin v. Löwis | 2006-02-26 | 2 | -129/+60 |
| | |||||
* | Oops, I forgot to check this in with the change to Grammar/Grammar. | Neal Norwitz | 2006-02-26 | 1 | -16/+3 |
| | | | | | Implement change suggested by Jiwon Seo on python-dev. ['(' gen_for ')'] is redundant with test, so remove it. |