Commit Graph

1900 Commits

Author SHA1 Message Date
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
Jeremy Hylton
7fe9f6da18 Backport fix for SF808594: leak on lambda with duplicate arguments. 2003-09-22 04:41:21 +00:00
Martin v. Löwis
6280f00d49 Patch #805613: Fix usage of the PTH library. 2003-09-20 11:13:18 +00:00
Raymond Hettinger
c866ac776c Backport leak fix for new code objects. 2003-09-16 04:36:33 +00:00
Martin v. Löwis
abb296712f Patch #794826: Add __file__ in dynamically loaded modules for multiple
interpreters. Fixes #698282.
2003-09-04 18:46:39 +00:00
Walter Dörwald
afa2448b2a Backport checkin:
Fix a crash: when sq_item failed the code continued blindly and used the
NULL pointer. (Detected by Michael Hudson, patch provided by Neal Norwitz).

Fix refcounting leak in filtertuple().
2003-08-18 18:34:09 +00:00
Walter Dörwald
07089028f1 Backport checkin:
Fix refcount leak in the UnicodeError constructor:
When parsing the constructor arguments failed, a
reference to the argument tuple was leaked.
2003-08-14 21:00:28 +00:00