1599 Commits

Author SHA1 Message Date
Jeremy Hylton
2a15d9a17e Backport fix for SF808594: leak on lambda with duplicate arguments. 2003-09-22 04:42:17 +00:00
Neal Norwitz
b1c0258a16 Backport:
Fix SF #762455, segfault when sys.stdout is changed in getattr

Note:  in 2.2, the problem was an infinite loop (at least for me).
2003-06-29 14:57:10 +00:00
Jeremy Hylton
6c75479a80 Backport fix for SF bug 734869 and sundry compiler cleanups. 2003-05-22 16:43:04 +00:00
Martin v. Löwis
7aed4a33ac Patch #708604: Check more function results. 2003-05-03 10:53:51 +00:00
Martin v. Löwis
52773e317e Patch #716969: Detect thread creation failure. 2003-04-19 07:46:28 +00:00
Martin v. Löwis
b15021ed01 Patch #711835: Remove unnecessary lock operations. 2003-04-18 11:21:22 +00:00
Guido van Rossum
ef582abab4 Backport:
PyErr_NormalizeException(): in the type==NULL test, we should simply
return.  Setting an exception can mess with the exception state, and
continuing is definitely wrong (since type is dereferenced later on).
Some code that calls this seems to be prepared for a NULL exception
type, so let's be safe rather than sorry and simply assume there's
nothing to normalize in this case.
2003-04-10 20:30:18 +00:00
Martin v. Löwis
3c5173c179 Patch #710576: Implement per-interpreter-state codec registries. 2003-03-30 20:57:31 +00:00
Neal Norwitz
1d92ed9bab Backport 2.220,
SF patch #708201, unchecked return value in import.c by Jason Harper
2003-03-23 14:32:56 +00:00
Jack Jansen
427ee3bbdd Partial backport of 2.11: better error messages on import failures.
Fixes #652590.
2003-02-25 14:20:44 +00:00
Guido van Rossum
466a3a7150 Backport 2.217 and 2.218:
Provide access to the import lock, fixing SF bug #580952.  This is
mostly from SF patch #683257, but I had to change unlock_import() to
return an error value to avoid fatal error.
2003-02-13 17:06:02 +00:00
Guido van Rossum
32810627a2 Backport SF #660455 fix. 2003-02-12 19:09:45 +00:00
Neal Norwitz
f2dc6a0736 Backport 2.12: Fix for SF #639945, 64-bit bug on AIX when loading
dynamic modules
2003-01-10 23:32:02 +00:00
Neal Norwitz
76f485ff95 Backport Neil Schemenauer's fix for SF #529750,
Circular reference makes Py_Init crash

Modified to keep _Py_ResetReferences() API, but make it a no-op.
It's not called now (for 2.3 it was completely removed).
2002-11-20 02:38:10 +00:00
Guido van Rossum
bb857ac4e6 Initialize tick_counter to 0. Found by Neal Norwitz. 2002-10-08 14:50:55 +00:00
Michael W. Hudson
d1bb75505f Backport:
2002/08/11 12:23:04 lemburg Python/bltinmodule.c 2.262
2002/08/11 12:23:04 lemburg Objects/unicodeobject.c 2.162
2002/08/11 12:23:03 lemburg Misc/NEWS 1.461
2002/08/11 12:23:03 lemburg Lib/test/test_unicode.py 1.65
2002/08/11 12:23:03 lemburg Include/unicodeobject.h 2.39
Add C API PyUnicode_FromOrdinal() which exposes unichr() at C level.

u'%c' will now raise a ValueError in case the argument is an
integer outside the valid range of Unicode code point ordinals.

Closes SF bug #593581.
2002-10-07 12:32:57 +00:00
Michael W. Hudson
51e80dfd02 Backport my checkin of revision 2.264 of Python/compile.c:
Clamp code objects' tp_compare result to [-1, 1].

Bugfix candidate.
2002-10-07 11:30:07 +00:00
Michael W. Hudson
5e40e74bbe This is Armin Rigo's patch:
[ 617309 ] getframe hook (Psyco #1)

Forward port candidate.
2002-10-07 09:47:21 +00:00
Michael W. Hudson
ddd3f0ea7b This is Armin Rigo's patch:
[ 617311 ] Tiny profiling info (Psyco #2)

Forward port candidate.
2002-10-07 09:40:20 +00:00
Michael W. Hudson
b397f21432 This is Armin Rigo's patch:
[ 617312 ] debugger-controlled jumps (Psyco #3)

Forward port candidate, I guess.
2002-10-07 09:37:26 +00:00
Martin v. Löwis
067010f7fa Patch #618347: Work around Solaris pthread.h bug. 2002-10-04 10:16:27 +00:00
Michael W. Hudson
9c5a508eec Fix for the recursion_level bug Armin Rigo reported in sf
patch #617312, both on the trunk and the 22-maint branch.

Also added a test case, and ported the test_trace I wrote for HEAD
to 2.2.2 (with all those horrible extra 'line' events ;-).
2002-10-02 13:13:45 +00:00
Michael W. Hudson
7c2778f423 Backport mhammond's 2.14:
Fix bug [ 549731 ] Unicode encoders appears to leak references.

Python 2.2.1 bugfix candidate.
2002-09-30 10:52:21 +00:00
Martin v. Löwis
7433ef5cee Add encoding in LookupError. Fixes #615013. 2002-09-26 16:04:31 +00:00
Michael W. Hudson
44ed841fec backport theller's checkin of
revision 1.74 of marshal.c

Whitespace normalization.
2002-09-24 11:56:45 +00:00