summaryrefslogtreecommitdiffstats
path: root/Python/compile.c
Commit message (Collapse)AuthorAgeFilesLines
* Issue #23192: Fixed generator lambdas. Patch by Bruno Cauet.Serhiy Storchaka2015-03-111-2/+2
|\
| * Issue #23192: Fixed generator lambdas. Patch by Bruno Cauet.Serhiy Storchaka2015-03-111-2/+2
| |
* | merge 3.4 (#23048)Benjamin Peterson2014-12-131-3/+2
|\ \ | |/
| * pop the loop block even for infinite while loops (closes #23048)Benjamin Peterson2014-12-131-3/+2
| |
| * Issue #22453: Warn against the use of leaking macro PyObject_REPR().Serhiy Storchaka2014-11-181-10/+10
| |
* | Issue #22869: Split pythonrun into two modulesNick Coghlan2014-11-201-2/+0
| | | | | | | | | | | | | | - interpreter startup and shutdown code moved to a new pylifecycle.c module - Py_OptimizeFlag moved into the new module with the other global flags
* | Issue #22453: Removed non-documented macro PyObject_REPR().Serhiy Storchaka2014-11-181-10/+10
| |
* | Closes #11471: avoid generating a JUMP_FORWARD instruction at the end of an ↵Antoine Pitrou2014-09-181-3/+3
| | | | | | | | | | | | if-block if there is no else-clause. Original patch by Eugene Toder.
* | Issue #21523: Fix over-pessimistic computation of the stack effect of some ↵Antoine Pitrou2014-05-231-2/+6
|\ \ | |/ | | | | | | | | | | opcodes in the compiler. This also fixes a quadratic compilation time issue noticeable when compiling code with a large number of "and" and "or" operators.
| * Issue #21523: Fix over-pessimistic computation of the stack effect of some ↵Antoine Pitrou2014-05-231-2/+6
| | | | | | | | | | | | | | opcodes in the compiler. This also fixes a quadratic compilation time issue noticeable when compiling code with a large number of "and" and "or" operators.
| * Issue #20625: Fix compilation issueVictor Stinner2014-02-181-1/+2
| |
| * Mangle __parameters in __annotations__ dict properly. Issue #20625.Yury Selivanov2014-02-181-1/+7
| |
* | PEP 465: a dedicated infix operator for matrix multiplication (closes #21176)Benjamin Peterson2014-04-101-0/+6
| |
* | Issue #20625: Fix compilation issueVictor Stinner2014-02-181-1/+2
| |
* | Mangle __parameters in __annotations__ dict properly. Issue #20625.Yury Selivanov2014-02-181-1/+7
|/
* upcast int to size_t to silence two ↵Christian Heimes2013-12-041-1/+1
| | | | autological-constant-out-of-range-compare warnings with clang.
* Issue #19722: Added opcode.stack_effect(), which accuratelyLarry Hastings2013-11-231-8/+12
| | | | computes the stack effect of bytecode instructions.
* Issue #9566, #19617: Fix more compiler warnings in compile.c on Windows 64-bitVictor Stinner2013-11-191-10/+13
|
* Issue #9566, #19617: New try to fix compilation on WindowsVictor Stinner2013-11-191-1/+1
| | | | | Some compilers (ex: Visual Studio) decode -2147483648 as a unsigned integer instead of an signed integer.
* Issue #9566, #19617: Fix compilation on WindowsVictor Stinner2013-11-191-2/+2
| | | | INT32_MIN and INT32_MAX constants are unknown on Windows.
* Issue #9566: compile.c uses Py_ssize_t instead of int to store sizes to fixVictor Stinner2013-11-191-48/+68
| | | | | | | compiler warnings on Windows 64-bit. Use Py_SAFE_DOWNCAST() where the final downcast is needed. The bytecode doesn't support integer parameters larger than 32-bit yet.
* Issue #19437: Fix compiler_class(), handle compiler_lookup_arg() failureVictor Stinner2013-11-051-0/+4
|
* cleanup the construction of __qualname__ (closes #19301 again)Benjamin Peterson2013-10-201-70/+82
|
* Close #19313: remove no longer needed Py_XINCREFNick Coghlan2013-10-201-1/+0
| | | | Eliminates a refleak introduced in commit b4a325275fb0
* removal u_qualname, since compiler_scope_qualname is only ever called onceBenjamin Peterson2013-10-191-8/+0
|
* strengthen condition and add assertionBenjamin Peterson2013-10-191-1/+2
|
* give explicitly global functions and classes a global __qualname__ (closes ↵Benjamin Peterson2013-10-191-17/+37
| | | | #19301)
* Issue #18783: Removed existing mentions of Python long type in docstrings,Serhiy Storchaka2013-08-271-1/+1
|\ | | | | | | error messages and comments.
| * Issue #18783: Removed existing mentions of Python long type in docstrings,Serhiy Storchaka2013-08-271-1/+1
| | | | | | | | error messages and comments.
* | Close #11619: The parser and the import machinery do not encode UnicodeVictor Stinner2013-08-261-20/+37
| | | | | | | | filenames anymore on Windows.
* | Issue #18408: Fix compiler_import() to handle PyUnicode_Substring() failure ↵Victor Stinner2013-07-111-1/+4
| | | | | | | | properly
* | fix compilation on WindowsVictor Stinner2013-05-161-1/+2
| |
* | rather than passing locals to the class body, just execute the class body in ↵Benjamin Peterson2013-05-161-10/+1
| | | | | | | | the proper environment
* | hide the __class__ closure from the class body (#12370)Benjamin Peterson2013-05-151-15/+49
| |
* | check local class namespace before reaching for cells (closes #17853)Benjamin Peterson2013-04-301-1/+4
| |
* | Merge indentation fix from 3.3.Ezio Melotti2013-04-191-6/+6
|\ \ | |/
| * Fix indentation.Ezio Melotti2013-04-191-6/+6
| |
* | Issue #17645: convert an assert() into a proper exception in _Py_Mangle().Antoine Pitrou2013-04-061-2/+5
|\ \ | |/
| * Issue #17645: convert an assert() into a proper exception in _Py_Mangle().Antoine Pitrou2013-04-061-2/+5
| |
* | unify some ast.argument's attrs; change Attribute column offset (closes #16795)Benjamin Peterson2013-03-181-6/+6
| | | | | | | | Patch from Sven Brauch.
* | evaluate lambda keyword-only defaults after positional defaults (#16967 again)Benjamin Peterson2013-02-101-2/+2
| |
* | evaluate positional defaults before keyword-only defaults (closes #16967)Benjamin Peterson2013-02-101-2/+2
| |
* | assert than we never try to deal with True, False, or None as a nameBenjamin Peterson2012-12-061-0/+4
| |
* | create NameConstant AST class for None, True, and False literals (closes #16619)Benjamin Peterson2012-12-061-6/+15
|/
* Issue #16546: make ast.YieldFrom argument mandatory.Mark Dickinson2012-11-251-14/+11
|
* Issue #5765: Apply a hard recursion limit in the compilerNick Coghlan2012-11-041-0/+5
| | | | | | | Previously, excessive nesting in expressions would blow the stack and segfault the interpreter. Now, a hard limit based on the configured recursion limit and a hardcoded scaling factor is applied.
* remove unused variableBenjamin Peterson2012-07-181-1/+1
|
* Issue #15368: fixing variable typo.Meador Inge2012-07-181-1/+1
|\
| * Issue #15368: fixing variable typo.Meador Inge2012-07-181-1/+1
| |
* | Issue #15368: make bytecode generation deterministic.Meador Inge2012-07-181-2/+22
|\ \ | |/