Martin v. Löwis
63bf149a26
Patch #1418 : Make the AC_REPLACE_FUNCS object files actually work.
2007-11-12 05:14:05 +00:00
Christian Heimes
004c1c1562
Backport of Guido's review of my patch.
2007-11-07 18:30:22 +00:00
Christian Heimes
cea681be19
Backported fix for bug #1392 from py3k branch r58903.
2007-11-07 17:50:54 +00:00
Raymond Hettinger
dc1d1ba9cf
Add build option for faster loop execution.
2007-11-07 02:45:46 +00:00
Raymond Hettinger
12e94200c0
Fix marshal's incorrect handling of subclasses of builtin types (backport candidate).
2007-11-07 01:13:09 +00:00
Raymond Hettinger
a45c4873fc
Missing DECREFs
2007-10-25 02:26:58 +00:00
Raymond Hettinger
3a8daf5b56
Fixup error return and add support for intermixed ints and floats/
2007-10-24 02:05:51 +00:00
Raymond Hettinger
3f8caa3ba7
Optimize sum() for integer and float inputs.
2007-10-24 01:28:33 +00:00
Neal Norwitz
15f2661758
Fix Coverity 185-186: If the passed in FILE is NULL, uninitialized memory
...
would be accessed.
Will backport.
2007-10-12 03:05:19 +00:00
Neal Norwitz
3adac21762
Fix Coverity #158 : Check the correct variable.
2007-10-05 03:41:19 +00:00
Thomas Wouters
e2176020f9
Try harder to stay within the 79-column limit. There's still two places that go (way) over, but those are harder to fix without suffering in readability.
2007-09-20 17:35:10 +00:00
Thomas Wouters
ae406c6018
Whitespace cleanup.
2007-09-19 17:27:43 +00:00
Georg Brandl
5a5bc7b10d
Fix #1169 : remove docstrings in functions for -OO.
2007-09-19 06:37:19 +00:00
Brett Cannon
1e534b5425
Fix a crasher where Python code managed to infinitely recurse in C code without
...
ever going back out to Python code in PyObject_Call(). Required introducing a
static RuntimeError instance so that normalizing an exception there is no
reliance on a recursive call that would put the exception system over the
recursion check itself.
2007-09-07 04:18:30 +00:00
Nick Coghlan
b90f52e932
Revert compile.c changes that shouldn't have been included in previous checkin
2007-08-25 04:35:54 +00:00
Nick Coghlan
3af0e785e7
Revert misguided attempt at fixing incompatibility between -m and -i switches (better fix coming soon)
2007-08-25 04:32:07 +00:00
Georg Brandl
add36e5fdf
Second half of #1752175 : #ifdef out references to PyImport_DynLoadFiletab if HAVE_DYNAMIC_LOADING is not defined.
2007-08-23 18:08:06 +00:00
Alex Martelli
d8672aa8a4
Fix compile.c so that it records 0.0 and -0.0 as separate constants in a code
...
object's co_consts tuple; add a test to show that the previous behavior (where
these two constants were "collapsed" into one) causes serious malfunctioning.
2007-08-22 21:14:17 +00:00
Georg Brandl
d7e9f608c3
Revert accidental checkins from last commit.
2007-08-21 06:03:43 +00:00
Georg Brandl
fdca6d8599
Demand version 2.5.1 since 2.5 has a bug with codecs.open context managers.
2007-08-21 06:01:18 +00:00
Georg Brandl
69ff5acc8b
Place #ifdef Py_USING_UNICODE around decode_unicode().
2007-08-06 07:37:58 +00:00
Neal Norwitz
2ef7582b52
Handle errors when generating a warning.
...
The value is always written to the returned pointer if getting it was
successful, even if a warning causes an error. (This probably doesn't matter
as the caller will probably discard the value.)
Will backport.
2007-08-05 03:23:31 +00:00
Martin v. Löwis
6819210b9e
PEP 3123: Provide forward compatibility with Python 3.0, while keeping
...
backwards compatibility. Add Py_Refcnt, Py_Type, Py_Size, and
PyVarObject_HEAD_INIT.
2007-07-21 06:55:02 +00:00
Guido van Rossum
b6ac23cd07
SF patch# 1755885 by Kurt Kaiser: show location of Unicode escape errors.
...
(Slightly tweaked for style and refcounts.)
2007-07-18 17:19:14 +00:00
Walter Dörwald
84a3efec37
Add T_PYSSIZET in structmember.h: This can be used for
...
Py_ssize_t members.
Simplify the implementation of UnicodeError objects:
start and end attributes are now stored directly as
Py_ssize_t members, which simplifies various get and
set functions.
2007-06-13 16:57:12 +00:00