Benjamin Peterson
7a6a97352d
pop the loop block even for infinite while loops ( closes #23048 )
2014-12-13 16:06:19 -05:00
Serhiy Storchaka
a86c091a73
Issue #22453 : Fexed reference leaks when format error messages in ceval.c.
...
Warn against the use of leaking macro PyObject_REPR().
2014-11-19 00:11:05 +02:00
Antoine Pitrou
ab4a69158b
Issue #21523 : Fix over-pessimistic computation of the stack effect of some 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.
2014-05-23 11:46:03 +02:00
Antoine Pitrou
022db598ac
Issue #17645 : convert an assert() into a proper exception in _Py_Mangle().
2013-04-06 21:21:04 +02:00
Meador Inge
0e3755e58a
remove unused variable
2012-07-18 17:48:34 -05:00
Meador Inge
b8a569065e
Issue #15368 : fixing variable typo.
2012-07-18 16:32:37 -05:00
Meador Inge
6642d1f97d
Issue #15368 : make bytecode generation deterministic.
2012-07-18 14:09:04 -05:00
Benjamin Peterson
0c0d756098
don't let a tuple msg be interpreted as arguments to AssertionError ( closes #13268 )
2011-10-27 08:21:59 -04:00
Antoine Pitrou
a4d36a9572
Fix misindents in compile.c (for Benjamin).
...
Of course, whoever used the wrong indentation rules needs to be spanked.
2010-06-22 21:42:05 +00:00
Antoine Pitrou
c83ea137d7
Untabify C files. Will watch buildbots.
2010-05-09 14:46:46 +00:00
Larry Hastings
402b73fb8d
Backported PyCapsule from 3.1, and converted most uses of
...
CObject to PyCapsule.
2010-03-25 00:54:54 +00:00
Benjamin Peterson
0dee9c1b5c
prevent lambda functions from having docstrings #8164
2010-03-17 20:41:42 +00:00
Benjamin Peterson
565d78586b
normalize exceptions passed to the __exit__ method #7853
...
In Python 2.x, exceptions in finally blocks are not normalized. Since with
statements are implemented using finally blocks, ceval.c had to be tweaked to
distinguish between with finally blocks and normal ones.
A test for the finalization of generators containing with statements was also
added.
2010-02-05 02:12:14 +00:00
Alexandre Vassalotti
b646547bb4
Issue #2333 : Backport set and dict comprehensions syntax.
2010-01-11 22:36:12 +00:00
Alexandre Vassalotti
ee936a2130
Issue #2335 : Backport set literals syntax from Python 3.x.
2010-01-09 23:35:54 +00:00
Mark Dickinson
ccc690d650
Issue #1678380 : When distinguishing between -0.0 and 0.0 in
...
compiler_add_o, use copysign instead of examining the first and last
bytes of the double. The latter method fails for little-endian
ARM, OABI, where doubles are little-endian but with the words swapped.
2009-11-28 16:32:27 +00:00
Benjamin Peterson
cef9782810
turn goto into do while loop
2009-11-20 02:15:50 +00:00
Mark Dickinson
026ac7cf69
Allow core Python build to succeed under WITHOUT_COMPLEX. The module build stage still fails.
2009-10-15 17:45:39 +00:00
Neil Schemenauer
7fdd1cb583
Issue #1754094 : Improve the stack depth calculation in the compiler.
...
There should be no other effect than a small decrease in memory use.
Patch by Christopher Tur Lesniewski-Laas.
2009-10-14 17:17:14 +00:00
Benjamin Peterson
d9920c255d
remove tmpname support since it's no longer used
2009-06-21 23:03:36 +00:00
Benjamin Peterson
5ecf57adcf
remove unused 'encoding' member from the compiler struct
2009-06-17 03:23:04 +00:00
Benjamin Peterson
a72be3b325
when no module is given in a 'from' relative import, make ImportFrom.module NULL
2009-06-13 20:23:33 +00:00
Jeffrey Yasskin
7937d939b1
Fix nearly all compilation warnings under Apple gcc-4.0. Tested with OPT="-g
...
-Wall -Wstrict-prototypes -Werror" in both --with-pydebug mode and --without.
There's still a batch of non-prototype warnings in Xlib.h that I don't know how
to fix.
2009-05-29 03:44:31 +00:00
Benjamin Peterson
49a6b0ef70
take into account the fact that SETUP_WITH pushes a finally block
2009-05-25 20:12:57 +00:00
Benjamin Peterson
1880d8b823
add a SETUP_WITH opcode
...
It speeds up the with statement and correctly looks up the special
methods involved.
2009-05-25 13:13:44 +00:00