Commit graph

34446 commits

Author SHA1 Message Date
Armin Rigo
dd5c023af5 some more fixes and tests for inspect.getsource(), triggered by crashes
from the PyPy project as well as the SF bug #1295909.
2005-09-25 11:45:45 +00:00
Georg Brandl
e9f8ec98d4 Commit memory leaking fix. 2005-09-25 06:16:40 +00:00
Armin Rigo
ec862b907a (pedronis, arigo)
segfault when a class contain a non-list value in the (undocumented)
special attribute __slotnames__.
2005-09-24 22:58:41 +00:00
Raymond Hettinger
6b27cda643 Convert iterator __len__() methods to a private API. 2005-09-24 21:23:05 +00:00
Hye-Shik Chang
9ceebd5445 Patch #1288833: Removed thread lock from socket.getaddrinfo on
FreeBSD 5.3 and later versions which got thread-safe getaddrinfo(3).
(Reported by Maxim Sobolev)
2005-09-24 14:58:47 +00:00
Peter Astrand
3a708dfc88 Changed license header: Now simply referring to PSF. This closes bug
1138653.
2005-09-23 17:37:29 +00:00
Skip Montanaro
acb1424106 The key to the various sort columns got lost. Pulled from
http://mail.python.org/pipermail/python-dev/2002-July/026876.html
2005-09-23 17:14:22 +00:00
Neal Norwitz
02cfa0bae5 SF #1297059, doc incorrect return type for search() method. (There is a description of returned values at the top, so just remove the sentance and correct an example.) 2005-09-23 04:26:24 +00:00
Fred Drake
5a13e91f72 update URL into the Python wiki
(forward port revision 1.10.4.1)
2005-09-22 19:37:52 +00:00
Michael W. Hudson
10402a306f Patches #1298449 and #1298499: Add some missing checks for error
returns in cStringIO.c.  Thanks to Andrew Bennetts.

This must be a backport candidate.
2005-09-22 09:19:01 +00:00
Jack Jansen
19e11c86a7 MacOSX 10.4 apparently does not allow the creation time to be set to later
than the modification time. Changed the SetDates test to accomodate.

Backport candidate.
2005-09-21 20:52:11 +00:00
Neal Norwitz
058bde1944 SF Patch #1297028, cjkcodecs does not initialize type pointer
Fix segfault.  I tried to write a test, but it wouldn't crash
when running regrtest.  This really should have some sort of test.

Should definitely be backported.
2005-09-21 06:44:25 +00:00
Jack Jansen
2190f8c47e Added a class MallocHeapOutputBufferType for types that are passed
as &buffer, &size and allocated by the called function.
2005-09-20 21:11:19 +00:00
Guido van Rossum
a2534c8618 Update 64-bit AIX and HP-UX build instructions (forward port). 2005-09-20 19:06:23 +00:00
Armin Rigo
335ffe88bb C89 compliance. 2005-09-20 19:04:02 +00:00
Armin Rigo
f879024487 test and fix for buggy handling of exceptions raised by C functions,
causing the profiler to crash on an AssertionError if the same Python
function catches multiple exceptions from C functions.
2005-09-20 18:50:13 +00:00
Guido van Rossum
630db60a55 - On 64-bit platforms, when __len__() returns a value that cannot be
represented as a C int, raise OverflowError.

(Forward port from 2.4.2; the patch to classobject.c was already in
but needed a correction in the error message text.)
2005-09-20 18:49:54 +00:00
Armin Rigo
1c2d7e5363 clean-up tracing of C functions. In particular, don't call the trace func
with an exception currently set!
2005-09-20 18:34:01 +00:00
Armin Rigo
71d7e704b8 Removed a check "if (args != NULL)" which is always True and makes no sense. 2005-09-20 18:13:03 +00:00
Armin Rigo
a6eb56cf46 Don't call memset() before checking that the ptr is not NULL. 2005-09-20 18:07:47 +00:00
Jack Jansen
b53355ad77 Added support for (optionally) bracketing calls with
Py_{BEGIN,END}_ALLOW_THREADS.
2005-09-20 15:13:53 +00:00
Matthias Klose
f3f231f60c - Patch #1166948: locale.py: Prefer LC_ALL, LC_CTYPE and LANG over LANGUAGE
to get the correct encoding.

- Patch #1166938: locale.py: Parse LANGUAGE as a colon separated list of
  languages.
2005-09-20 07:02:49 +00:00
Guido van Rossum
ba3e6ec0c9 A minor fix for 64-bit platforms: when __len__() returns Python int
containing a value that doesn't fit in a C int, raise OverflowError
rather than truncating silently (and having 50% chance of hitting the
"it should be >= 0" error).
2005-09-19 22:42:41 +00:00
Armin Rigo
3a703b6059 Reverted revision 1.83, which introduced a bug and subtle incompatibility
issues.  See bug #1112856.
2005-09-19 09:11:04 +00:00
Neal Norwitz
cfe7dd96cf Note fix of memory leak. 2005-09-19 06:49:27 +00:00
Neal Norwitz
3efd0a1e86 Remove unnecessary/extra parens when returning a value. 2005-09-19 06:45:53 +00:00
Neal Norwitz
24b3c22985 Forward port fixes for problems reported by valgrind 2005-09-19 06:43:44 +00:00
Skip Montanaro
f8948ca5d7 skip _locale test if OS X < 10.4 2005-09-19 03:54:46 +00:00
Martin v. Löwis
4ed673877d Patch #1268314: Cache lines in StreamReader.readlines for performance.
Will backport to Python 2.4.
2005-09-18 08:34:39 +00:00
Martin v. Löwis
8b291e2d66 Patch #1213831: Fix typo in unicodedata._getcode.
Will backport to Python 2.4.
2005-09-18 08:17:56 +00:00
Georg Brandl
9e28107ce8 Test case for latest complexobject fix. 2005-09-17 07:51:15 +00:00
Vinay Sajip
116f16e4ab Added lock acquisition around handler removal from logger 2005-09-16 10:33:40 +00:00
Raymond Hettinger
9bda1d6f64 No longer ignore exceptions raised by comparisons during key lookup.
Inspired by Armin Rigo's suggestion to do the same with dictionaries.
2005-09-16 07:14:21 +00:00
Georg Brandl
c404ff2f2d patch [ 1118729 ] Error in representation of complex numbers(again) 2005-09-16 06:42:26 +00:00
Brett Cannon
bd9c3f7028 Change type on variable to silence gcc 4 warning. Call signature was found at
http://darwinsource.opendarwin.org/10.4.2/dyld-43.1/src/dyldAPIs.cpp .
2005-09-16 02:43:35 +00:00
Georg Brandl
532dacffd8 patch [ 1277677 ] tkinter hello world example bug 2005-09-15 16:02:13 +00:00
Georg Brandl
6953772d90 patch [ 1119423 ] python -c readlink()s and stat()s '-c' 2005-09-15 13:00:34 +00:00
Georg Brandl
ff52837445 fix typo 2005-09-15 11:16:28 +00:00
Georg Brandl
77c85e63b4 bug [ 868706 ] Calling builtin function 'eval' from C causes seg fault. 2005-09-15 10:46:13 +00:00
Brett Cannon
a783d06f8c Clear out the regex cache when the TimeRE cache is invalidated by a locale
change.

Fixes bug #1290505.
2005-09-15 02:34:56 +00:00
Georg Brandl
fb1ef85b0b *** empty log message *** 2005-09-14 20:53:32 +00:00
Georg Brandl
402b53d43f bug [ 1007046 ] os.startfile() doesn't accept Unicode filenames 2005-09-14 20:51:40 +00:00
Georg Brandl
3225242a39 bug [ 1274828 ] splitunc not documented 2005-09-14 20:42:00 +00:00
Georg Brandl
80bbf3f6c8 Complete format code support in getargs.c::skipitem(), which is called when
evaluating keyword arguments.

CVS: ----------------------------------------------------------------------
CVS: Enter Log.  Lines beginning with `CVS:' are removed automatically
CVS:
CVS: Committing in .
CVS:
CVS: Modified Files:
CVS: 	Python/getargs.c
CVS: ----------------------------------------------------------------------
2005-09-14 19:38:29 +00:00
Georg Brandl
6dd14619bb Complete format code support in getargs.c::skipitem(), which is called when
evaluating keyword arguments.
2005-09-14 19:29:53 +00:00
Guido van Rossum
8ee3e5aa93 - 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:09:42 +00:00
Guido van Rossum
539c662f10 - 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:49:54 +00:00
Georg Brandl
3fbf3204c5 comma nit 2005-09-14 17:25:02 +00:00
Gustavo Niemeyer
6fa0c5a452 Bug #1202493: Fixing SRE parser to handle '{}' as perl does, rather than
considering it exactly like a '*'.
2005-09-14 08:54:39 +00:00
Georg Brandl
0c55f2946b Patch #1290454: Fix reload() error message when parent module is not in
sys.modules.
2005-09-14 06:56:20 +00:00