Commit Graph

2075 Commits

Author SHA1 Message Date
Guido van Rossum
e2f5adbc78 - Changes donated by Elemental Security to make it work on AIX 5.3
with IBM's 64-bit compiler (SF patch #1284289).  This also closes SF
  bug #105470: test_pwd fails on 64bit system (Opteron).
2005-09-14 18:15:03 +00:00
Guido van Rossum
e42f446482 (backport from HEAD)
- Changes donated by Elemental Security to make it work on HP-UX 11 on
  Itanium2 with HP's 64-bit compiler (SF patch #1225212).
2005-09-14 17:54:39 +00:00
Georg Brandl
32cb7f080d Backport of patch #1290454: Fix reload() error message when parent is not
in sys.modules.
2005-09-14 06:56:51 +00:00
Georg Brandl
66e75ac6e0 Disallow keyword arguments for type constructors that don't use them
(fixes #1119418).
2005-08-26 06:43:16 +00:00
Martin v. Löwis
ea3c6f032b Forward UnicodeDecodeError into SyntaxError for source encoding errors. 2005-08-24 08:39:46 +00:00
Raymond Hettinger
9314d3261d SF bug #1242657: list(obj) can swallow KeyboardInterrupt
Fix over-aggressive PyErr_Clear().  The same code fragment appears in
various guises in list.extend(), map(), filter(), zip(), and internally
in PySequence_Tuple().
2005-08-21 11:09:58 +00:00
Barry Warsaw
190a336331 Fix for SF bug # 900092, hotshot.stats.load assertion failure. This patch
restores the tracing of a 'return' event for exceptions that cause a function
to exit.  Also, update the unit test.

I will port to Python 2.5.
2005-08-15 17:32:56 +00:00
Georg Brandl
3ccd18e3df Backport: fix cleanup DECREF logic in builtin_filter function. 2005-07-19 22:20:44 +00:00
Georg Brandl
6108583ded bug 1234979 addition 2005-07-09 15:27:05 +00:00
Georg Brandl
412d5fab78 backport bug [ 1234979 ] Lock.acquire treats only 1 as True 2005-07-08 22:25:17 +00:00
Michael W. Hudson
14ef205309 Backport my recent fix (rev. 2.40 of Python/pystate.c):
Fix:

[ 1176893 ] Readline segfault

by unsilly-ing PyGILState_Release().

Backport candidate.
2005-04-24 19:32:34 +00:00
Anthony Baxter
4d381b17e4 Move exception finalisation later in the shutdown process - this
fixes the crash seen in bug #1165761
2005-03-29 12:32:50 +00:00
Martin v. Löwis
465499aad4 Add 0 to _POSIX_SEMAPHORES. 2005-03-28 12:36:19 +00:00
Anthony Baxter
11da5d5e6f Patch #1163249 - Correctly handle _POSIX_SEMAPHORES == -1 to mean no
support for posix semaphores.
2005-03-16 04:13:29 +00:00
Martin v. Löwis
77c8402c97 Revert previous checkin on getargs 'L' code. Try to convert all
numbers in PyLong_AsLongLong, and update test suite accordingly.
2005-03-03 12:26:20 +00:00
Martin v. Löwis
2d2a32f017 Clear internal call error in 'L' format. Fixes #723201. 2005-03-03 09:24:05 +00:00
Guido van Rossum
1a37c4c6b1 Backport 2.39:
Close the discussion in SF bug 1069160.
2005-02-08 15:01:35 +00:00
Martin v. Löwis
486ff4bd92 Partially revert #1074011; don't try to fflush stdin. 2005-01-27 18:58:30 +00:00
Anthony Baxter
bd43255329 happy new year! (2.4 branch) 2005-01-25 12:43:57 +00:00
Martin v. Löwis
e62ff1ec5c Flush std{in,out,err} before closing it. Fixes #1074011. 2005-01-23 09:50:14 +00:00
Andrew MacIntyre
905bb96516 make thread stack size compile-time tunable on OS/2 2005-01-17 12:19:24 +00:00
Armin Rigo
21905e3e28 Back-ported: marshal.dumps() with the new optional argument 'version' just
immediately segfaults, due to a typo!
2004-12-20 12:26:43 +00:00
Kurt B. Kaiser
4c79a83e0c Hye-Shik Chang's fix for 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().

M Misc/NEWS
M Python/ceval.c
2004-11-23 18:06:08 +00:00
Tim Peters
fb1ffb0ebb SF bug 1061968: threads: segfault or Py_FatalError at exit
PyGILState_Ensure():  The fix in 2.4a3 for bug 1010677 reintroduced thread
shutdown race bug 225673.  Repaired by (once again) ensuring the GIL is
held whenever deleting a thread state.

Alas, there's no useful test case for this shy bug.  Four years ago, only
Guido could provoke it, on his box, and today only Armin can provoke it
on his box.  I've never been able to provoke it (but not for lack of
trying!).

This is a critical fix for 2.3.5 too, since the fix for 1010677 got
backported there already and so also reintroduced 225673.  I don't intend to
backport this fix.  For whoever (if anyone) does, there are other thread
fixes in 2.4 that need backporting too, and I bet they need to happen first
for this patch to apply cleanly.
2004-11-08 04:30:21 +00:00
Jeremy Hylton
16b047904c SF patch 1025636: Check for NULL returns in compile.c:com_import_stmt
There is no test for this change, because there is no way to provoke memory errors on demand.  Test suite passes, though.
2004-11-07 14:04:00 +00:00