Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix parsing of subscriptlist. | Jeremy Hylton | 2006-02-27 | 1 | -4/+30 |
| | | | | | | | (Armin's SF bug report). d = {} d[1,] = 1 Now handled correctly | ||||
* | Patch 1413181, by Gabriel Becedillas. | Tim Peters | 2006-02-27 | 1 | -0/+4 |
| | | | | | | | | | 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 |
| | |||||
* | Simplify ast_for_trailer() in anticipation of more changes. | Jeremy Hylton | 2006-02-27 | 1 | -17/+11 |
| | |||||
* | 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 | 2 | -11/+12 |
| | |||||
* | 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 | 1 | -29/+345 |
| | | | | Cleanup Python-ast.c generation. | ||||
* | PEP 308 implementation, including minor refdocs and some testcases. It | Thomas Wouters | 2006-02-27 | 5 | -520/+705 |
| | | | | | | | | | | | | | | | | | | | | | | | | | 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 | 1 | -0/+1 |
| | |||||
* | Stop generating empty arrays. | Martin v. Löwis | 2006-02-26 | 1 | -117/+38 |
| | |||||
* | 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. | ||||
* | Check whether there are flags. | Martin v. Löwis | 2006-02-26 | 1 | -1/+1 |
| | |||||
* | Fix iterating over cmpop_ty lists. | Martin v. Löwis | 2006-02-26 | 1 | -2/+7 |
| | |||||
* | Generate code to recursively copy an AST into | Martin v. Löwis | 2006-02-26 | 3 | -725/+1556 |
| | | | | a tree of Python objects. Expose this through compile(). | ||||
* | Based on discussion with Martin and Thomas on python-checkins | Neal Norwitz | 2006-02-20 | 1 | -1/+1 |
| | | | | add a Py_SAFE_DOWNCAST() to make the code correct. | ||||
* | Fix compiler warning on amd64. We can't use zd here since this is | Neal Norwitz | 2006-02-19 | 1 | -2/+2 |
| | | | | ultimately going to snprintf() not the python string formatter. Right? | ||||
* | Fix compiler warning (int vs Py_ssize_t mismatch | Neal Norwitz | 2006-02-19 | 1 | -1/+1 |
| | |||||
* | Bug #801349: document that start/stop/step slice arguments can be None | Georg Brandl | 2006-02-19 | 1 | -1/+1 |
| | |||||
* | Remove size constraints in SLICE opcodes. | Martin v. Löwis | 2006-02-17 | 1 | -16/+11 |
| | |||||
* | Move cast to suppress warning. | Martin v. Löwis | 2006-02-16 | 1 | -2/+2 |
| | |||||
* | Use Py_ssize_t to count the | Martin v. Löwis | 2006-02-16 | 7 | -22/+24 |
| | |||||
* | Use PyString_FromFormat for formatting error messages. | Martin v. Löwis | 2006-02-16 | 1 | -42/+36 |
| | |||||
* | Merge ssize_t branch. | Martin v. Löwis | 2006-02-15 | 15 | -187/+363 |
| | |||||
* | Renamed _length_cue() to __length_hint__(). See: | Armin Rigo | 2006-02-11 | 1 | -3/+3 |
| | | | | http://mail.python.org/pipermail/python-dev/2006-February/060524.html | ||||
* | Update general copyright years to 2006. | Georg Brandl | 2006-02-11 | 1 | -1/+1 |
| | |||||
* | Explain the clearing of the stack in a comment in Python/ceval.c's | Thomas Wouters | 2006-02-10 | 1 | -1/+2 |
| | | | | | call_function(), rather than commenting on the lack of an explanation in a comment. | ||||
* | Add doc discussing how AST compiler is structured and designed. | Brett Cannon | 2006-02-09 | 1 | -0/+507 |
| | | | | | It is out of date, though, thanks to lacking info on the arena API. It also should eventually be removed in favor of updating PEP 339. | ||||
* | Use C-style comment | Neal Norwitz | 2006-02-05 | 1 | -1/+1 |
| | |||||
* | Improved handling of syntax errors. | Jeremy Hylton | 2006-01-27 | 1 | -35/+74 |
| | | | | | | | | | | | | | | | | | Expand set of errors caught in set_context(). Some new errors, some old error messages changed for consistency. Fixed error checking in generator expression code. The first set of tests were impossible condition given the grammar. In general, the ast code uses REQ() for those sanity checks. Fix some error handling for augmented assignments. As comments in the code explain, set_context() ought to work here, but I got unexpected crashes when I tried it. Should come back to this. Add note to Grammar that yield expression is a special case. Add doctest cases for SyntaxErrors raised by ast.c. | ||||
* | typo | Georg Brandl | 2006-01-20 | 1 | -1/+1 |
| | |||||
* | Check return result from Py_InitModule*(). This API can fail. | Neal Norwitz | 2006-01-19 | 3 | -0/+6 |
| | | | | Probably should be backported. | ||||
* | Repair bizarre indentation created by VC 7.1. | Tim Peters | 2006-01-08 | 1 | -1/+1 |
| | |||||
* | alias_for_import_name(): Dueling compiler warnings ;-) | Tim Peters | 2006-01-08 | 1 | -1/+2 |
| | | | | | | | Squash new warnings from VC 7.1 about mixing signed and unsigned types in comparisons. I can see why `len` was changed to size_t here, but don't see why `i` was also changed. Change `i` back to int. | ||||
* | 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 | 2 | -15/+15 |
| | |||||
* | Fix icc warnings: strlen() returns size_t | Neal Norwitz | 2006-01-08 | 1 | -3/+2 |
| | |||||
* | Fix icc warnings: shadowing local variable (i) and complex is set but not ↵ | Neal Norwitz | 2006-01-07 | 1 | -3/+2 |
| | | | | used, so remove | ||||
* | Fix icc warnings: single bit fields should be unsigned, shadowing local ↵ | Neal Norwitz | 2006-01-07 | 1 | -16/+16 |
| | | | | variables | ||||
* | Fix icc warnings: shadowing local variables | Neal Norwitz | 2006-01-07 | 1 | -2/+1 |
| | |||||
* | svnversion_init(): Use standard layout for function defn. | Tim Peters | 2006-01-06 | 1 | -1/+2 |
| | |||||
* | Trimmed trailing whitespace. | Tim Peters | 2006-01-06 | 1 | -20/+20 |
| | |||||
* | Drop sys.build_number. Add sys.subversion. | Martin v. Löwis | 2006-01-05 | 1 | -2/+84 |
| | |||||
* | Fix a warning from gcc by adding a missed const qualifier. | Hye-Shik Chang | 2006-01-04 | 1 | -1/+1 |
| | |||||
* | Regenerate. | Martin v. Löwis | 2006-01-02 | 1 | -45/+45 |
| | |||||
* | Adjust usage of compiler_use_new_block to its return type. | Martin v. Löwis | 2006-01-02 | 1 | -2/+2 |
| | |||||
* | SF#1391872 | Fredrik Lundh | 2005-12-29 | 1 | -2/+2 |
| | | | | | Floating point literals don't work in non-US locale in 2.5. Patch and new locale tests by Hye-Shik Chang. | ||||
* | do_mkvalue(), 'I' and 'k' cases: squash legitimate | Tim Peters | 2005-12-24 | 1 | -2/+2 |
| | | | | | compiler warnings about mixing signed and unsigned types in comparisons. | ||||
* | const poisoning, spreading to fix new const warnings | Tim Peters | 2005-12-24 | 1 | -3/+3 |
| | | | | in _winreg.c. |