summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Ignore resource fileNeal Norwitz2006-02-280-0/+0
|
* Add support for version field on ModulesMartin v. Löwis2006-02-283-8/+29
|
* Check the return code for PyErr_Warn() when warning about raising stringBrett Cannon2006-02-272-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 Peters2006-02-271-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 Norwitz2006-02-272-1/+4
|
* unconst.Martin v. Löwis2006-02-271-2/+2
|
* Clarify C-style exception handling with proper label name.Thomas Wouters2006-02-271-3/+3
|
* Fix assertions.Thomas Wouters2006-02-271-3/+3
|
* PEP 343 -- the with-statement.Guido van Rossum2006-02-2723-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öwis2006-02-272-0/+164
|
* Even though we don't currently use unicode or complex numbers in the test,Neal Norwitz2006-02-271-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 byBrett Cannon2006-02-271-2/+1
| | | | the interpreter in 2.5 .
* Make or_test similar to test, not testlist.Martin v. Löwis2006-02-271-1/+2
|
* Skip over doc strings.Martin v. Löwis2006-02-272-1/+10
|
* Convert array.array.insert to use Py_ssize_t (like the rest already does.)Thomas Wouters2006-02-271-2/+2
|
* Fix parsing of subscriptlist.Jeremy Hylton2006-02-271-4/+30
| | | | | | | (Armin's SF bug report). d = {} d[1,] = 1 Now handled correctly
* More unconsting.Martin v. Löwis2006-02-279-62/+56
|
* Patch 1413181, by Gabriel Becedillas.Tim Peters2006-02-272-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 Wouters2006-02-271-2/+2
|
* Clean up from-import handling.Thomas Wouters2006-02-271-22/+21
|
* unconst.Martin v. Löwis2006-02-271-9/+9
|
* Simplify ast_for_trailer() in anticipation of more changes.Jeremy Hylton2006-02-271-17/+11
|
* Trimmed trailing whitespace.Tim Peters2006-02-271-1/+1
|
* Add an entry for 308Neal Norwitz2006-02-271-0/+2
|
* Fix old not-reading-pep-308-right artifact.Thomas Wouters2006-02-271-1/+1
|
* Revert backwards-incompatible const changes.Martin v. Löwis2006-02-2736-70/+71
|
* Note version added for conditional expressionsNeal Norwitz2006-02-271-1/+1
|
* Update for PEP 308 patch.Thomas Wouters2006-02-271-3/+54
|
* Handle testlist_safe and or_test like testlist.Martin v. Löwis2006-02-271-2/+2
|
* Alias non-terminals introduced for backwards compatibility.Martin v. Löwis2006-02-271-0/+3
|
* Fix assertion errors in debug build, brought on by PEP 308 patch.Thomas Wouters2006-02-271-1/+1
|
* Create _ast module.Martin v. Löwis2006-02-277-221/+485
| | | | Cleanup Python-ast.c generation.
* Check for a not-found rlconf.h by testing for None.Martin v. Löwis2006-02-271-1/+1
|
* regenerated. please read PEP 306 when changing Python's grammar!Anthony Baxter2006-02-271-37/+40
|
* PEP 308 implementation, including minor refdocs and some testcases. ItThomas Wouters2006-02-2711-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öwis2006-02-272-0/+2
|
* Stop generating empty arrays.Martin v. Löwis2006-02-262-129/+60
|
* Oops, I forgot to check this in with the change to Grammar/Grammar.Neal Norwitz2006-02-261-16/+3
| | | | | Implement change suggested by Jiwon Seo on python-dev. ['(' gen_for ')'] is redundant with test, so remove it.
* Check whether there are flags.Martin v. Löwis2006-02-261-1/+1
|
* Fix iterating over cmpop_ty lists.Martin v. Löwis2006-02-262-7/+20
|
* Generate code to recursively copy an AST intoMartin v. Löwis2006-02-268-785/+1946
| | | | a tree of Python objects. Expose this through compile().
* Remove line meant to test trailing whitespace since that kind of whitespace isBrett Cannon2006-02-261-19/+40
| | | | | | automatically removed. Also annotate what each line is meant to test.
* Whitespace normalization.Tim Peters2006-02-263-3/+3
|
* Oops. Fix syntax for C89 compilers.Guido van Rossum2006-02-251-2/+2
|
* - Patch 1433928:Guido van Rossum2006-02-2512-10/+611
| | | | | | | | - The copy module now "copies" function objects (as atomic objects). - dict.__getitem__ now looks for a __missing__ hook before raising KeyError. - Added a new type, defaultdict, to the collections module. This uses the new __missing__ hook behavior added to dict (see above).
* Per discussion on python-dev, remove CO_GENERATOR_ALLOWED. Leave comment ↵Neal Norwitz2006-02-252-2/+5
| | | | about not removing yet.
* Move the vimrc file to the newly created Vim/ directory.Brett Cannon2006-02-251-0/+0
|
* Add a script that auto-generates a Vim syntax highlighting file for Python.Brett Cannon2006-02-253-0/+413
| | | | | | | Just symlink or copy python.vim to ~/.vim/syntax/ . Also included is a sample Python file with basic expressions to make sure they are highlighted. Also add a Vim directory in Misc to hold all Vim configuration files.
* Implement change suggested by Jiwon Seo on python-dev.Neal Norwitz2006-02-241-1/+1
| | | | ['(' gen_for ')'] is redundant with test, so remove it.
* Fix a couple of warnings on Mac OS X.Neal Norwitz2006-02-242-2/+2
|