summaryrefslogtreecommitdiffstats
path: root/Python
Commit message (Collapse)AuthorAgeFilesLines
* Generate code to recursively copy an AST intoMartin v. Löwis2006-02-263-725/+1556
| | | | a tree of Python objects. Expose this through compile().
* Based on discussion with Martin and Thomas on python-checkinsNeal Norwitz2006-02-201-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 isNeal Norwitz2006-02-191-2/+2
| | | | ultimately going to snprintf() not the python string formatter. Right?
* Fix compiler warning (int vs Py_ssize_t mismatchNeal Norwitz2006-02-191-1/+1
|
* Bug #801349: document that start/stop/step slice arguments can be NoneGeorg Brandl2006-02-191-1/+1
|
* Remove size constraints in SLICE opcodes.Martin v. Löwis2006-02-171-16/+11
|
* Move cast to suppress warning.Martin v. Löwis2006-02-161-2/+2
|
* Use Py_ssize_t to count theMartin v. Löwis2006-02-167-22/+24
|
* Use PyString_FromFormat for formatting error messages.Martin v. Löwis2006-02-161-42/+36
|
* Merge ssize_t branch.Martin v. Löwis2006-02-1515-187/+363
|
* Renamed _length_cue() to __length_hint__(). See:Armin Rigo2006-02-111-3/+3
| | | | http://mail.python.org/pipermail/python-dev/2006-February/060524.html
* Update general copyright years to 2006.Georg Brandl2006-02-111-1/+1
|
* Explain the clearing of the stack in a comment in Python/ceval.c'sThomas Wouters2006-02-101-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 Cannon2006-02-091-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 commentNeal Norwitz2006-02-051-1/+1
|
* Improved handling of syntax errors.Jeremy Hylton2006-01-271-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.
* typoGeorg Brandl2006-01-201-1/+1
|
* Check return result from Py_InitModule*(). This API can fail.Neal Norwitz2006-01-193-0/+6
| | | | Probably should be backported.
* Repair bizarre indentation created by VC 7.1.Tim Peters2006-01-081-1/+1
|
* alias_for_import_name(): Dueling compiler warnings ;-)Tim Peters2006-01-081-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 Peters2006-01-081-1/+2
| | | | Move declaration of local `flags` to top of block.
* Fix icc warnings: conversion from "long" to "int" may lose significant bitsNeal Norwitz2006-01-082-15/+15
|
* Fix icc warnings: strlen() returns size_tNeal Norwitz2006-01-081-3/+2
|
* Fix icc warnings: shadowing local variable (i) and complex is set but not ↵Neal Norwitz2006-01-071-3/+2
| | | | used, so remove
* Fix icc warnings: single bit fields should be unsigned, shadowing local ↵Neal Norwitz2006-01-071-16/+16
| | | | variables
* Fix icc warnings: shadowing local variablesNeal Norwitz2006-01-071-2/+1
|
* svnversion_init(): Use standard layout for function defn.Tim Peters2006-01-061-1/+2
|
* Trimmed trailing whitespace.Tim Peters2006-01-061-20/+20
|
* Drop sys.build_number. Add sys.subversion.Martin v. Löwis2006-01-051-2/+84
|
* Fix a warning from gcc by adding a missed const qualifier.Hye-Shik Chang2006-01-041-1/+1
|
* Regenerate.Martin v. Löwis2006-01-021-45/+45
|
* Adjust usage of compiler_use_new_block to its return type.Martin v. Löwis2006-01-021-2/+2
|
* SF#1391872Fredrik Lundh2005-12-291-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 legitimateTim Peters2005-12-241-2/+2
| | | | | compiler warnings about mixing signed and unsigned types in comparisons.
* const poisoning, spreading to fix new const warningsTim Peters2005-12-241-3/+3
| | | | in _winreg.c.
* Remove extra parensNeal Norwitz2005-12-191-1/+1
|
* Fix SF bug #1072182, problems with signed characters.Neal Norwitz2005-12-193-6/+6
| | | | Most of these can be backported.
* Bug #889500, fix line number on SyntaxWarning for global declarations.Neal Norwitz2005-12-191-7/+10
|
* fixed compilation with an ordinary C89 compilerFredrik Lundh2005-12-182-4/+3
|
* Fix Armin's bug 1333982. He found it, he didn't created it :-)Neal Norwitz2005-12-181-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.
* Fix compiler warningsNeal Norwitz2005-12-181-2/+2
|
* Handle more error conditions with SystemErrorNeal Norwitz2005-12-181-8/+22
|
* Fix Bug #1378022, UTF-8 files with a leading BOM crashed the interpreter.Neal Norwitz2005-12-181-2/+2
| | | | Needs backport.
* Get float() to be more portable across platforms. Disable hex strings.Neal Norwitz2005-12-181-48/+25
|
* Set MemoryError when alloc failsNeal Norwitz2005-12-181-3/+11
|
* Wrap long lines in the grammarNeal Norwitz2005-12-181-16/+17
|
* Cleanup a bit and make things more consistent.Neal Norwitz2005-12-182-142/+87
| | | | | Don't double check for NULLs and don't initialize if not necessary. No functional changes.
* Expose Subversion revision number (calculated via "svnversion .") to Python.Barry Warsaw2005-12-181-0/+3
| | | | | | | Add C API function Py_GetBuildNumber(), add it to the interactive prompt banner (i.e. Py_GetBuildInfo()), and add it as the sys.build_number attribute. The build number is a string instead of an int because it may contain a trailing 'M' if there are local modifications.
* SF patch #1355913, PEP 341 - Unification of try/except and try/finallyNeal Norwitz2005-12-172-55/+81
| | | | Modified since ast-arenas was implemented.
* Merge from ast-arena. This reduces the code in Python/ast.c by ~300 lines,Neal Norwitz2005-12-177-1164/+576
| | | | simplifies a lot of error handling code, and fixes many memory leaks.