Neal Norwitz
03c566a268
Revert 54813 for 2.5.1 release. Can be applied after 2.5 branch is unfrozen.
2007-04-16 06:19:52 +00:00
Kristján Valur Jónsson
9d9fbb4359
Fix a bug when using the __lltrace__ opcode tracer, and a problem sith signed chars in frameobject.c which can occur with opcodes > 127
2007-04-13 22:09:59 +00:00
Georg Brandl
8a10ea4613
Patch #1682205 : a TypeError while unpacking an iterable is no longer
...
masked by a generic one with the message "unpack non-sequence".
(backport from rev. 54480)
2007-03-21 09:00:55 +00:00
Georg Brandl
0ea891603d
Patch #1674228 : when assigning a slice (old-style), check for the
...
sq_ass_slice instead of the sq_slice slot.
(backport from rev. 54139)
2007-03-05 22:28:13 +00:00
Neal Norwitz
a5f5f14783
Backport 53901 and 53902 to prevent crash when there is an error decoding unicode filenames
2007-02-25 16:19:21 +00:00
Armin Rigo
1bc1ab23d3
Backport of r52862.
2006-11-29 22:07:38 +00:00
Andrew M. Kuchling
5f95870868
[Bug #1542016 ] Report PCALL_POP value. This makes the return value of sys.callstats() match its docstring.
...
Backport candidate. Though it's an API change, this is a pretty obscure
portion of the API.
2006-10-27 13:29:41 +00:00
Neal Norwitz
df6a6494cb
Move/copy assert for tstate != NULL before first use.
...
Verify that PyEval_Get{Globals,Locals} returned valid pointers.
Klocwork 231-232
2006-08-13 18:10:10 +00:00
Neal Norwitz
8a87f5d37e
Patch #1538606 , Patch to fix __index__() clipping.
...
I modified this patch some by fixing style, some error checking, and adding
XXX comments. This patch requires review and some changes are to be expected.
I'm checking in now to get the greatest possible review and establish a
baseline for moving forward. I don't want this to hold up release if possible.
2006-08-12 17:03:09 +00:00
Neal Norwitz
421c1319ad
Whoops, how did that get in there. :-) Revert all the parts of 51227 that were not supposed to go it. Only Modules/_ctypes/cfields.c was supposed to be changed
2006-08-12 02:12:30 +00:00
Neal Norwitz
6b4953fd3d
Check returned pointer is valid.
...
Klocwork #233
2006-08-12 02:06:34 +00:00
Armin Rigo
97ff04789d
Concatenation on a long string breaks (SF #1526585 ).
2006-08-09 15:37:26 +00:00
Neal Norwitz
245ce8db46
i and j are initialized below when used. No need to do it twice
2006-06-12 02:16:10 +00:00
Neal Norwitz
b9845e72f9
Get rid of f_restricted too. Doc the other 4 ints that were already removed
...
at the NeedForSpeed sprint.
2006-06-12 02:11:18 +00:00
Martin v. Löwis
0e8bd7e1cc
Patch #1495999 : Part two of Windows CE changes.
...
- update header checks, using autoconf
- provide dummies for getenv, environ, and GetVersion
- adjust MSC_VER check in socketmodule.c
2006-06-10 12:23:46 +00:00
Armin Rigo
35f6d36951
[ 1497053 ] Let dicts propagate the exceptions in user __eq__().
...
[ 1456209 ] dictresize() vulnerability ( <- backport candidate ).
2006-06-01 13:19:12 +00:00
Fredrik Lundh
7a83089c06
needforspeed: backed out the Py_LOCAL-isation of ceval; the massive in-
...
lining killed performance on certain Intel boxes, and the "aggressive"
macro itself gives most of the benefits on others.
2006-05-27 10:39:48 +00:00
Tim Peters
7df5e7f4b2
Patch 1145039.
...
set_exc_info(), reset_exc_info(): By exploiting the
likely (who knows?) invariant that when an exception's
`type` is NULL, its `value` and `traceback` are also NULL,
save some cycles in heavily-executed code.
This is a "a kronar saved is a kronar earned" patch: the
speedup isn't reliably measurable, but it obviously does
reduce the operation count in the normal (no exception
raised) path through PyEval_EvalFrameEx().
The tim-exc_sanity branch tries to push this harder, but
is still blowing up (at least in part due to pre-existing
subtle bugs that appear to have no other visible
consequences!).
Not a bugfix candidate.
2006-05-26 23:14:37 +00:00
Fredrik Lundh
1b94940165
Py_LOCAL shouldn't be used for data; it works for some .NET 2003 compilers,
...
but Trent's copy thinks that it's an anachronism...
2006-05-26 12:01:49 +00:00
Fredrik Lundh
57640f5c57
needforspeed: added PY_LOCAL_AGGRESSIVE macro to enable "aggressive"
...
LOCAL inlining; also added some missing whitespace
2006-05-26 11:54:04 +00:00
Fredrik Lundh
b8b3c8e276
needforspeed: added Py_LOCAL macro, based on the LOCAL macro used
...
for SRE and others. applied Py_LOCAL to relevant portion of ceval,
which gives a 1-2% speedup on my machine. ymmv.
2006-05-26 11:29:39 +00:00
Georg Brandl
684fd0c8ec
Replace PyObject_CallFunction calls with only object args
...
with PyObject_CallFunctionObjArgs, which is 30% faster.
2006-05-25 19:15:31 +00:00
Richard Jones
cebbefc98d
Applied patch 1337051 by Neal Norwitz, saving 4 ints on frame objects.
2006-05-23 18:28:17 +00:00
Neal Norwitz
02104df4c8
Fix #132 from Coverity, retval could have been derefed
...
if a continue inside a try failed.
2006-05-19 06:31:23 +00:00
Neal Norwitz
b255069d43
Micro optimization. In the first case, we know that frame->f_exc_type
...
is NULL, so there's no reason to do anything with it. In the second case,
we know frame->f_exc_type is not NULL, so we can just do an INCREF.
2006-05-09 05:38:56 +00:00