Commit Graph

1906 Commits

Author SHA1 Message Date
Martin v. Löwis
cb6727e811 Prepare for 2.3.7c1. 2008-03-02 20:39:32 +00:00
Martin v. Löwis
d254ca8813 Backport of r61180:
Added checks for integer overflows, contributed by Google. Some are
only available if asserts are left in the code, in cases where they
can't be triggered from Python code.
2008-03-02 20:32:57 +00:00
Martin v. Löwis
f3377e42e3 Partially revert #1074011; don't try to fflush stdin. 2005-01-27 18:55:06 +00:00
Anthony Baxter
a0c5d38c76 happy new year! 2005-01-25 12:39:22 +00:00
Martin v. Löwis
03bdf1719c Flush std{in,out,err} before closing it. Fixes #1074011. 2005-01-23 09:50:32 +00:00
Andrew MacIntyre
811ded018d backport: make thread stack size compile-time tunable on OS/2 2005-01-17 12:21:28 +00:00
Matthias Klose
c57bd881ea Taken from 2.4/HEAD:
- Bug #875692: Improve signal handling, especially when using threads, by
  forcing an early re-execution of PyEval_EvalFrame() "periodic" code when
  things_to_do is not cleared by Py_MakePendingCalls().
2004-12-01 07:36:58 +00:00
Armin Rigo
512f2eee1b Backported thread fixes from 2.4 (by mostly copying pystate.c over from 2.4):
* using malloc() and free() directly, as explained in the new comment
* coding style in the PyGILState_*() functions
* the recent destroy-tstate-without-holding-the-GIL bug
* lock fixes and many more comments in thread.c
2004-11-09 15:35:23 +00:00
Phillip J. Eby
521cbc37af Fix for SF bug #1029475 : reload() doesn't work with PEP 302 loaders.
(Backport to 2.3 maintenance branch.)
2004-09-23 05:19:27 +00:00
Martin v. Löwis
2c23c9ec25 Patch #1015021: Stop claiming that coerce can return None. 2004-08-25 10:43:32 +00:00
Raymond Hettinger
df5b358af6 Backport SF bug #1004088:
big code objects (>64K) may be optimized incorrectly
2004-08-06 21:29:22 +00:00
Martin v. Löwis
7495081c6c Patch #984714: Properly diagnose E_DECODE errors. 2004-07-21 05:34:47 +00:00
Thomas Heller
dd6acdeda6 When importing an extension on Windows, the code reads the PE 'import
table' of the dll, to make sure that the dll really was build for the
correct Python version.  It does this by looking for an entry
'pythonXY.dll' (X.Y is the Python version number).

The code now checks the size of the dll's import table before reading
entries from it.  Before this patch, the code crashed trying to read
the import table when the size was zero (as in Win2k's wmi.dll, for
example).

Look for imports of 'pythonXY_d.dll' in a debug build instead of
'pythonXY.dll'.

Fixes SF 951851: Crash when reading "import table" of certain windows dlls.
2004-07-02 08:37:35 +00:00
Thomas Heller
a67ea98b99 Fix a refcount bug in an obscure code corner. 2004-06-07 14:59:59 +00:00
Anthony Baxter
9f163acde5 better yet 2004-05-13 11:54:38 +00:00
Anthony Baxter
7b73c13941 how many @*&(*$# places do we include the years?? 2004-05-13 11:53:29 +00:00
Andrew MacIntyre
61525be632 OS/2 VACPP build updates/fixes 2004-03-29 11:58:55 +00:00
Martin v. Löwis
886756f35a Decref all if ensure_fromlist fails. Fixes #876533. 2004-03-23 16:28:45 +00:00
Armin Rigo
c7ccc24029 Backport for bug fix of 2.204. 2004-03-22 20:41:47 +00:00
Fred Drake
4d478ba0d0 Remove the PendingDeprecationWarning from apply(). apply() will
remain deprecated in the documentation.
2003-12-05 17:33:55 +00:00
Tim Peters
412c3ac4f1 Py_Finalize(): disabled the second call of cyclic gc, and added extensive
comments about why both calls to cyclic gc here can cause problems.

Already fixed on the trunk.  Since the calls were introduced in 2.3,
that's the end of it.
2003-12-01 22:13:12 +00:00
Martin v. Löwis
604b120ca6 Patch #804543: strdup saved locales. 2003-11-13 07:42:13 +00:00
Alex Martelli
b34ac7371c regressing the performance bugfix -- Guido wants the performance bug left
alone, because there can be no guarantee re the semantics of += vs + .
2003-10-25 23:22:55 +00:00
Alex Martelli
af1b4c95f9 changed builtin_sum to use PyNumber_InPlaceAdd -- unchanged semantics but
fixes performance bug with sum(lotsoflists, []).
2003-10-25 12:47:09 +00:00
Walter Dörwald
4958f2741a Backport checkin:
Fix a bunch of typos in documentation, docstrings and comments.
(From SF patch #810751)
2003-10-20 14:34:48 +00:00