Commit Graph

1892 Commits

Author SHA1 Message Date
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
Walter Dörwald
0098d86433 Backport checkins:
* Enhance message for UnicodeEncodeError and UnicodeTranslateError.
  If there is only one bad character it will now be printed in a
  form that is a valid Python string.
* Add a unicode prefix to the characters in the UnicodeEncodeError
  and UnicodeTranslateError message.
2003-08-12 17:38:22 +00:00
Michael W. Hudson
0eb81f24a6 Repeat my refcount & cut&paste fixes on the branch. 2003-08-11 12:21:40 +00:00
Martin v. Löwis
144b440fc2 Move initialization of sys.std{in,out}.encoding to Py_Initialize.
Verify that the encoding actually exists. Fixes #775985.
2003-08-09 09:48:29 +00:00
Jason Tishler
fac083d14a Patch 775605: Cygwin pthread_sigmask() workaround patch
Cygwin's pthread_sigmask() implementation appears to be buggy. This
patch works around this problem by using sigprocmask() instead.

This patch is implemented in a general way so it could be used by other
platforms too. If this approach is deemed too risky, then I can work up
a patch that just hacks Python/thread_pthread.h for Cygwin.

Note that I tested this patch against 2.3c1 under Red Hat Linux 8.0 too.

[snip]
And finally, I need someone to regenerate pyconfig.h.in and configure
with the same versions of the autotools that are normally used by
Python.

Neal kindly regenerated pyconfig.h.in and configure for me.
2003-07-22 15:20:49 +00:00
Mark Hammond
5f4e8ca376 Correct previous patch looking for warnings module: sys.modules, not
sys.__modules__.
2003-07-16 01:54:38 +00:00
Mark Hammond
edd07737d7 Fix [ 771097 ] frozen programs fail due to implicit import of "warnings".
If the initial import of warnings fails, clear the error.  When the module
is actually needed, if the original import failed, see if it has managed
to find its way to sys.modules yet and if so, remember it.
2003-07-15 23:03:55 +00:00
Jeremy Hylton
1955fcf67a SF patch 763201: handling of SyntaxErrors in symbol table build
Fixes for three related bugs, including errors that caused a script to
be ignored without printing an error message.  The key problem was a bad
interaction between syntax warnings and syntax errors.  If an
exception was already set when a warning was issued, the warning could
clobber the exception.

The PyErr_Occurred() check in issue_warning() isn't entirely
satisfying (the caller should know whether there was already an
error), but a better solution isn't immediately obvious.

Bug fix candidate.
2003-07-15 20:23:26 +00:00
Martin v. Löwis
f9ce67d65f Initialize thread_id to 0 in unthreaded build. Fixes #770247. 2003-07-13 10:41:53 +00:00