]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
20 years agobackport bug [ 1172785 ] doctest.script_from_examples() result sometimes un-exec...
Georg Brandl [Sun, 26 Jun 2005 22:23:44 +0000 (22:23 +0000)] 
backport bug [ 1172785 ] doctest.script_from_examples() result sometimes un-exec-able

20 years ago- Bug #1155638: Fix a bug which affected HTTP 0.9 responses in httplib.
Georg Brandl [Sun, 26 Jun 2005 22:09:12 +0000 (22:09 +0000)] 
- Bug #1155638: Fix a bug which affected HTTP 0.9 responses in httplib.

20 years agobackport bug [ 1155638 ] self.length shield exception in httplib
Georg Brandl [Sun, 26 Jun 2005 22:06:56 +0000 (22:06 +0000)] 
backport bug [ 1155638 ] self.length shield exception in httplib

20 years agoBackport: Prevent creating a HTML link to file://?/
Georg Brandl [Sun, 26 Jun 2005 21:59:34 +0000 (21:59 +0000)] 
Backport: Prevent creating a HTML link to file://?/

20 years ago- Bug #1100201: Cross-site scripting was possible on BaseHTTPServer via
Georg Brandl [Sun, 26 Jun 2005 21:50:34 +0000 (21:50 +0000)] 
- Bug #1100201: Cross-site scripting was possible on BaseHTTPServer via
  error messages.

20 years agobackport bug [ 1100201 ] Cross-site scripting on BaseHTTPServer
Georg Brandl [Sun, 26 Jun 2005 21:33:54 +0000 (21:33 +0000)] 
backport bug [ 1100201 ] Cross-site scripting on BaseHTTPServer

20 years agobackport bug [ 1072853 ] thisid not intialized in pindent.py script
Georg Brandl [Sun, 26 Jun 2005 20:22:46 +0000 (20:22 +0000)] 
backport bug [ 1072853 ] thisid not intialized in pindent.py script

20 years agobackport bug [ 1166582 ] IterableUserDict not in docs
Georg Brandl [Sat, 25 Jun 2005 21:03:57 +0000 (21:03 +0000)] 
backport bug [ 1166582 ] IterableUserDict not in docs

20 years agobackport bug [ 1186072 ] tempnam doc doesn't include link to tmpfile
Georg Brandl [Sat, 25 Jun 2005 20:44:12 +0000 (20:44 +0000)] 
backport bug [ 1186072 ] tempnam doc doesn't include link to tmpfile

20 years agobackport bug [ 1175022 ] property example code error
Georg Brandl [Sat, 25 Jun 2005 20:07:39 +0000 (20:07 +0000)] 
backport bug [ 1175022 ] property example code error

20 years agobackport [ 1190563 ] os.waitpid docs don't specify return value for WNOHANG
Georg Brandl [Sat, 25 Jun 2005 19:55:37 +0000 (19:55 +0000)] 
backport [ 1190563 ] os.waitpid docs don't specify return value for WNOHANG

20 years agobackport bug [ 1202475 ] httplib docs mentioning HTTPConnection.getreply
Georg Brandl [Sat, 25 Jun 2005 19:16:58 +0000 (19:16 +0000)] 
backport bug [ 1202475 ] httplib docs mentioning HTTPConnection.getreply

20 years agobackport patch [ 1213031 ] note that os.chown can have -1 as an argument
Georg Brandl [Sat, 25 Jun 2005 18:53:24 +0000 (18:53 +0000)] 
backport patch [ 1213031 ] note that os.chown can have -1 as an argument

20 years agobackport of bug [ 1225705 ] os.environ documentation should mention unsetenv
Georg Brandl [Sat, 25 Jun 2005 18:47:28 +0000 (18:47 +0000)] 
backport of bug [ 1225705 ] os.environ documentation should mention unsetenv

20 years agobackport Patch #1227442: smtplib.SMTP.sendmail() accepts list or string for to_addrs.
Georg Brandl [Sat, 25 Jun 2005 18:24:28 +0000 (18:24 +0000)] 
backport Patch #1227442: smtplib.SMTP.sendmail() accepts list or string for to_addrs.

20 years agoSF bug #1224621: tokenize module does not detect inconsistent dedents
Raymond Hettinger [Tue, 21 Jun 2005 07:53:56 +0000 (07:53 +0000)] 
SF bug #1224621: tokenize module does not detect inconsistent dedents

20 years agoSF patch #1200018: Restore GC support to set objects
Raymond Hettinger [Sun, 19 Jun 2005 05:53:15 +0000 (05:53 +0000)] 
SF patch #1200018:  Restore GC support to set objects

Reverts 1.26 and 1.27.
And adds cycle testing.

20 years agoBug #1209560: spurious blank page in dist.pdf (backport)
Georg Brandl [Sat, 18 Jun 2005 20:11:26 +0000 (20:11 +0000)] 
Bug #1209560: spurious blank page in dist.pdf (backport)

20 years agoPatch #1180012: add documentation for modulefinder (backport)
Georg Brandl [Sat, 18 Jun 2005 20:06:30 +0000 (20:06 +0000)] 
Patch #1180012: add documentation for modulefinder (backport)

20 years agoFix typo.
Raymond Hettinger [Fri, 17 Jun 2005 10:27:50 +0000 (10:27 +0000)] 
Fix typo.

20 years agobackport Lib/test/test_class.py revision 1.13:
Michael W. Hudson [Thu, 16 Jun 2005 14:53:22 +0000 (14:53 +0000)] 
backport Lib/test/test_class.py revision 1.13:

Don't use 'is not' to compare strings.
(spotted by reading pypy-svn :)

20 years agoFix check for error condition
Andrew M. Kuchling [Wed, 15 Jun 2005 18:48:16 +0000 (18:48 +0000)] 
Fix check for error condition

20 years ago[Patch #1005892 from Alexandr Zamaraev] Fix two errors in the curses test suite
Andrew M. Kuchling [Wed, 15 Jun 2005 18:45:27 +0000 (18:45 +0000)] 
[Patch #1005892 from Alexandr Zamaraev]  Fix two errors in the curses test suite

20 years agoFix nits.
Raymond Hettinger [Wed, 15 Jun 2005 16:54:30 +0000 (16:54 +0000)] 
Fix nits.

20 years agobackport
Skip Montanaro [Wed, 15 Jun 2005 13:38:07 +0000 (13:38 +0000)] 
backport

20 years agoUpdate version here, too.
Michael W. Hudson [Wed, 15 Jun 2005 11:47:46 +0000 (11:47 +0000)] 
Update version here, too.

20 years ago[Bug #1219862] Document correct argument range for pair_content()
Andrew M. Kuchling [Tue, 14 Jun 2005 14:46:06 +0000 (14:46 +0000)] 
[Bug #1219862] Document correct argument range for pair_content()

20 years agoSF bug #1219448: small output bug
Raymond Hettinger [Tue, 14 Jun 2005 08:58:27 +0000 (08:58 +0000)] 
SF bug #1219448:  small output bug

20 years agoSF bug #1215887: String and list methods documentation deeply hidden
Raymond Hettinger [Tue, 14 Jun 2005 08:47:19 +0000 (08:47 +0000)] 
SF bug #1215887:  String and list methods documentation deeply hidden

Make doc on specific types easier to find by listing them in the headings
for the abstract types.

20 years agoSF bug #1219361 Fix typo
Raymond Hettinger [Mon, 13 Jun 2005 01:14:34 +0000 (01:14 +0000)] 
SF bug #1219361 Fix typo

20 years agoBackport 1.26 Decimal FAQ.
Raymond Hettinger [Sun, 12 Jun 2005 18:25:29 +0000 (18:25 +0000)] 
Backport 1.26 Decimal FAQ.

20 years agoBackport 1.37 namespace cleanup.
Raymond Hettinger [Sun, 12 Jun 2005 18:23:01 +0000 (18:23 +0000)] 
Backport 1.37 namespace cleanup.

20 years agoClarify docs about os.popen[234].
Georg Brandl [Fri, 10 Jun 2005 19:55:46 +0000 (19:55 +0000)] 
Clarify docs about os.popen[234].

20 years ago[Bug #1200134] Fix buffer overflow by constraining size of .getstr(), .instr() to...
Andrew M. Kuchling [Thu, 9 Jun 2005 17:55:34 +0000 (17:55 +0000)] 
[Bug #1200134] Fix buffer overflow by constraining size of .getstr(), .instr() to size of allocated buffer

20 years ago[Bug #1074261, patch #1074381] Restrict the size of chunks read from the file in...
Andrew M. Kuchling [Thu, 9 Jun 2005 14:22:07 +0000 (14:22 +0000)] 
[Bug #1074261, patch #1074381] Restrict the size of chunks read from the file in order to avoid overflow or huge memory consumption.  Patch by Mark Eichin

20 years ago[Patch #1171487, bug #1170331] Fix error in base64.b32decode when encoding a single...
Andrew M. Kuchling [Wed, 8 Jun 2005 22:53:01 +0000 (22:53 +0000)] 
[Patch #1171487, bug #1170331] Fix error in base64.b32decode when encoding a single null byte; test a null byte in all encodings to be sure it works

20 years ago[Bug #1149413] 'psize' argument should be 'pgsize'
Andrew M. Kuchling [Wed, 8 Jun 2005 21:51:58 +0000 (21:51 +0000)] 
[Bug #1149413] 'psize' argument should be 'pgsize'

20 years agofix broken (unexecuted) test
Anthony Baxter [Wed, 8 Jun 2005 04:56:41 +0000 (04:56 +0000)] 
fix broken (unexecuted) test

20 years agoTools/scripts/reindent.py is your friend
Anthony Baxter [Wed, 8 Jun 2005 04:35:28 +0000 (04:35 +0000)] 
Tools/scripts/reindent.py is your friend

20 years ago[Bug #1172763] dumbdbm uses eval() on lines, so it chokes if there's an extra \r...
Andrew M. Kuchling [Tue, 7 Jun 2005 19:57:01 +0000 (19:57 +0000)] 
[Bug #1172763] dumbdbm uses eval() on lines, so it chokes if there's an extra \r on the end of a line; fixed by stripping off trailing whitespace.

20 years ago[Bug #1170422] Use correct option name
Andrew M. Kuchling [Tue, 7 Jun 2005 19:05:06 +0000 (19:05 +0000)] 
[Bug #1170422] Use correct option name

20 years agoBug #1184380: extending&embedding example broken
Georg Brandl [Sun, 5 Jun 2005 10:57:00 +0000 (10:57 +0000)] 
Bug #1184380: extending&embedding example broken

20 years agoBug #1210001: typo in email docs
Georg Brandl [Sat, 4 Jun 2005 10:00:18 +0000 (10:00 +0000)] 
Bug #1210001: typo in email docs

20 years agoBackport bug #1196315: fix weakref.WeakValueDictionary constructor.
Georg Brandl [Sat, 4 Jun 2005 09:20:12 +0000 (09:20 +0000)] 
Backport bug #1196315: fix weakref.WeakValueDictionary constructor.

20 years agoBackport bug #1194181: bz2.BZ2File didn't handle mode 'U' correctly.
Georg Brandl [Fri, 3 Jun 2005 19:45:53 +0000 (19:45 +0000)] 
Backport bug #1194181: bz2.BZ2File didn't handle mode 'U' correctly.

20 years agobackport of [ 1197218 ] test_locale fix on modern linux
Anthony Baxter [Fri, 3 Jun 2005 16:01:29 +0000 (16:01 +0000)] 
backport of [ 1197218 ] test_locale fix on modern linux

On more modern linuxes (and probably others) straight 'en_US' isn't a
valid locale. Make the code try a couple of alternates.

20 years agoBackport bug #1213894: os.path.realpath didn't resolve symlinks that were the first
Georg Brandl [Fri, 3 Jun 2005 14:31:55 +0000 (14:31 +0000)] 
Backport bug #1213894: os.path.realpath didn't resolve symlinks that were the first
component of the path.

20 years agofix int.__divmod__.__doc__
Anthony Baxter [Fri, 3 Jun 2005 14:13:47 +0000 (14:13 +0000)] 
fix int.__divmod__.__doc__

20 years agowhitespace normalisation
Anthony Baxter [Fri, 3 Jun 2005 14:10:50 +0000 (14:10 +0000)] 
whitespace normalisation

20 years agofix exceptions.TabError. _Please_ run test suite before checking in.
Anthony Baxter [Fri, 3 Jun 2005 14:02:48 +0000 (14:02 +0000)] 
fix exceptions.TabError. _Please_ run test suite before checking in.

20 years ago[Bug #1209880] Describe only the True/False return values from lock.acquire()
Andrew M. Kuchling [Thu, 2 Jun 2005 17:01:08 +0000 (17:01 +0000)] 
[Bug #1209880] Describe only the True/False return values from lock.acquire()

20 years ago[Bug #1193001] Make the notation section use the same productionlist env. as other...
Andrew M. Kuchling [Thu, 2 Jun 2005 13:52:07 +0000 (13:52 +0000)] 
[Bug #1193001] Make the notation section use the same productionlist env. as other grammar rules

20 years ago[Bug #1177831] Fix (?(id)yes|no) for a group other than the first one, and add a...
Andrew M. Kuchling [Thu, 2 Jun 2005 13:40:12 +0000 (13:40 +0000)] 
[Bug #1177831] Fix (?(id)yes|no) for a group other than the first one, and add a test case

20 years ago[Bug #1152762] Ensure _end_of_line() returns an x-coordinate that's within the text box
Andrew M. Kuchling [Thu, 2 Jun 2005 00:11:55 +0000 (00:11 +0000)] 
[Bug #1152762] Ensure _end_of_line() returns an x-coordinate that's within the text box

20 years ago[Bug #1105706] Use correct name for constant
Andrew M. Kuchling [Wed, 1 Jun 2005 23:32:31 +0000 (23:32 +0000)] 
[Bug #1105706] Use correct name for constant

20 years ago[Bug #1123268] Fix typo
Andrew M. Kuchling [Wed, 1 Jun 2005 23:22:39 +0000 (23:22 +0000)] 
[Bug #1123268] Fix typo

20 years ago[Bug #1194249] Fix duplicate assignment in example code
Andrew M. Kuchling [Wed, 1 Jun 2005 15:27:26 +0000 (15:27 +0000)] 
[Bug #1194249] Fix duplicate assignment in example code

20 years agoSF bug #1202395: Description of string.lstrip() needs improvement
Raymond Hettinger [Tue, 31 May 2005 10:28:07 +0000 (10:28 +0000)] 
SF bug #1202395:  Description of string.lstrip() needs improvement

Clarify the role of the chars argument in the strip() methods.

20 years agoBackport fix to decorator grammar update.
Raymond Hettinger [Fri, 27 May 2005 11:23:44 +0000 (11:23 +0000)] 
Backport fix to decorator grammar update.

20 years agoSF bug #1209671: dict.popitem documentation should mention empty dict case
Raymond Hettinger [Fri, 27 May 2005 10:45:14 +0000 (10:45 +0000)] 
SF bug #1209671:  dict.popitem documentation should mention empty dict case

20 years agofix description of the input range of unichr()
Fred Drake [Wed, 25 May 2005 05:42:51 +0000 (05:42 +0000)] 
fix description of the input range of unichr()
(closes SF bug #1120777)

20 years agoupdate documentation on what constitutes a line in a source file
Fred Drake [Wed, 25 May 2005 05:30:36 +0000 (05:30 +0000)] 
update documentation on what constitutes a line in a source file
(closes SF bug #1167922)

20 years agoSF bug #1201807: Glossary listing bug
Raymond Hettinger [Sat, 14 May 2005 17:20:25 +0000 (17:20 +0000)] 
SF bug #1201807:  Glossary listing bug

20 years agobackport
Skip Montanaro [Thu, 12 May 2005 13:45:11 +0000 (13:45 +0000)] 
backport

20 years agobackport from head
Skip Montanaro [Thu, 12 May 2005 13:43:40 +0000 (13:43 +0000)] 
backport from head

20 years agoSF bug #1193890: calendar.weekheader not found in __all__
Raymond Hettinger [Tue, 10 May 2005 03:22:21 +0000 (03:22 +0000)] 
SF bug #1193890:  calendar.weekheader not found in __all__

20 years agoFix a docstring with mismatched opening and closing quotes.
Brett Cannon [Sat, 30 Apr 2005 05:51:59 +0000 (05:51 +0000)] 
Fix a docstring with mismatched opening and closing quotes.

Backport of fix for bug #1192777.

20 years agoSF bug #1190451: 6.9 First sentence is confusing
Raymond Hettinger [Thu, 28 Apr 2005 07:19:39 +0000 (07:19 +0000)] 
SF bug #1190451:  6.9 First sentence is confusing

* Fixed incorrect wording:  expression->exception
* Noted the specific exception reported by "raise" when the is nothing
  to re-raise.
* Eliminated several instances of "e.g." as recommended in the style guide.

20 years agoBackport 1.270
Raymond Hettinger [Thu, 28 Apr 2005 00:21:16 +0000 (00:21 +0000)] 
Backport 1.270

20 years agoFix typo.
Raymond Hettinger [Tue, 26 Apr 2005 05:20:03 +0000 (05:20 +0000)] 
Fix typo.

20 years agoBackport my recent fix (rev. 2.40 of Python/pystate.c):
Michael W. Hudson [Sun, 24 Apr 2005 19:32:34 +0000 (19:32 +0000)] 
Backport my recent fix (rev. 2.40 of Python/pystate.c):

Fix:

1176893 ] Readline segfault

by unsilly-ing PyGILState_Release().

Backport candidate.

20 years agoBackport checkin (and the appropriate fix to the test):
Walter Dörwald [Thu, 21 Apr 2005 21:53:43 +0000 (21:53 +0000)] 
Backport checkin (and the appropriate fix to the test):
If the data read from the bytestream in readline() ends in a '\r' read one more
byte, even if the user has passed a size parameter. This extra byte shouldn't
cause a buffer overflow in the tokenizer. The original plan was to return a line
ending in '\r', which might be recognizable as a complete line and skip any '\n'
that was read afterwards. Unfortunately this didn't work, as the tokenizer only
recognizes '\n' as line ends, which in turn lead to joined lines and
SyntaxErrors, so this special treatment of a split '\r\n' has been dropped. (It
can only happen with a temporarily exhausted bytestream now anyway.)
Fixes parts of SF bugs #1163244 and #1175396.

20 years agoCorrect swapped descriptions of empty string splits.
Raymond Hettinger [Tue, 19 Apr 2005 04:31:38 +0000 (04:31 +0000)] 
Correct swapped descriptions of empty string splits.

20 years agoBackport:
Jack Jansen [Sun, 17 Apr 2005 21:31:58 +0000 (21:31 +0000)] 
Backport:
Updated to work with current Python docs setup, and added a minimal README.

20 years agoThis commit was manufactured by cvs2svn to create branch
cvs2svn [Sun, 17 Apr 2005 21:31:58 +0000 (21:31 +0000)] 
This commit was manufactured by cvs2svn to create branch
'release24-maint'.

20 years agoSF bug #1183742: PyDict_Copy() can return non-NULL value on error
Raymond Hettinger [Fri, 15 Apr 2005 16:07:09 +0000 (16:07 +0000)] 
SF bug #1183742: PyDict_Copy() can return non-NULL value on error

20 years agoBackport relevant part of checkin:
Walter Dörwald [Thu, 14 Apr 2005 20:23:39 +0000 (20:23 +0000)] 
Backport relevant part of checkin:
SF patch #1180062 by George Yoshida:
(Doc/lib/libfunctional.tex: "in an new object" should read "in a new object")
Doc/lib/libsubprocess.tex: argument name is wrong; comma is missing

20 years agoget_method() returns a method name, not take it as an argument
Fred Drake [Wed, 13 Apr 2005 01:12:21 +0000 (01:12 +0000)] 
get_method() returns a method name, not take it as an argument
(backported from trunk revision 1.22)

20 years agoSF bug #1180392: StringIO's docs should mention overwriting of initial value
Raymond Hettinger [Mon, 11 Apr 2005 01:04:32 +0000 (01:04 +0000)] 
SF bug #1180392: StringIO's docs should mention overwriting of initial value

* Added a note that the initial file position is zero even if the object
  is freshly initialized.

20 years agoSF bug #1179957: Missing def'n of equality for set element
Raymond Hettinger [Sun, 10 Apr 2005 17:36:26 +0000 (17:36 +0000)] 
SF bug #1179957:  Missing def'n of equality for set element

20 years agoSF patch 1179503: fix typos in rpc.py
Raymond Hettinger [Sun, 10 Apr 2005 16:23:49 +0000 (16:23 +0000)] 
SF patch 1179503:  fix typos in rpc.py

20 years agoBackport my recent raw_input() vs no threads build vs SIGINT argh:
Michael W. Hudson [Thu, 7 Apr 2005 10:19:47 +0000 (10:19 +0000)] 
Backport my recent raw_input() vs no threads build vs SIGINT argh:

In a threads-disabled build, typing Ctrl-C into a raw_input() crashed,
because (essentially) I didn't realise that PY_BEGIN/END_ALLOW_THREADS
actually expanded to nothing under a no-threads build, so if you somehow
NULLed out the threadstate (e.g. by calling PyThread_SaveThread) it would
stay NULLed when you return to Python.  Argh!

20 years agoSF bug #1178269 Clarify when isMappingType/isSequenceType is True.
Raymond Hettinger [Thu, 7 Apr 2005 05:37:47 +0000 (05:37 +0000)] 
SF bug #1178269 Clarify when isMappingType/isSequenceType is True.

20 years agoSF bug #1178255: 256 should read 255 in operator module docs
Raymond Hettinger [Thu, 7 Apr 2005 04:39:35 +0000 (04:39 +0000)] 
SF bug #1178255: 256 should read 255 in operator module docs

20 years agoBackport checkin:
Walter Dörwald [Mon, 4 Apr 2005 21:56:28 +0000 (21:56 +0000)] 
Backport checkin:
Fix for SF bug #1175396: readline() will now read one more character, if
the last character read is "\r" (and size is None, i.e. we're allowed to
call read() multiple times), so that we can return the correct line ending
(this additional character might be a "\n").

If the stream is temporarily exhausted, we might return the wrong line ending
(if the last character read is "\r" and the next one (after the byte stream
provides more data) is "\n", but at least the atcr member ensures that we
get the correct number of lines (i.e. this "\n" will not be treated as
another line ending).

20 years agoBackport from 1.27:
Hye-Shik Chang [Mon, 4 Apr 2005 15:28:18 +0000 (15:28 +0000)] 
Backport from 1.27:

Fix testcase for 64bit BSD systems: long is 8 bytes for those systems
so there's no need to pad after off_t members.  And a small typo fix.

20 years agoCorrected SMTPHandler docs and added info about threadName attribute of LogRecord
Vinay Sajip [Thu, 31 Mar 2005 20:23:04 +0000 (20:23 +0000)] 
Corrected SMTPHandler docs and added info about threadName attribute of LogRecord

20 years agoAdded optional encoding argument to File based handlers and improved error handling...
Vinay Sajip [Thu, 31 Mar 2005 20:12:55 +0000 (20:12 +0000)] 
Added optional encoding argument to File based handlers and improved error handling for SysLogHandler

20 years agoMinor changes to imports
Vinay Sajip [Thu, 31 Mar 2005 20:11:45 +0000 (20:11 +0000)] 
Minor changes to imports

20 years agoMisc. changes
Vinay Sajip [Thu, 31 Mar 2005 20:10:38 +0000 (20:10 +0000)] 
Misc. changes

20 years ago(This is only relevant to the MacPython binary release process)
Bob Ippolito [Thu, 31 Mar 2005 17:38:00 +0000 (17:38 +0000)] 
(This is only relevant to the MacPython binary release process)
Set the Python version to 2.4 in the postflight script used when building
Mac OS X installer distributions.  Previously it was set to 2.3, so it
wouldn't build a working installer.

20 years agoBackport checkin:
Walter Dörwald [Thu, 31 Mar 2005 14:16:30 +0000 (14:16 +0000)] 
Backport checkin:
Since PyPI only accepts UTF-8 encoded data now, make sure that the data is
properly encoded and include the encoding in the Content-Type header.

20 years agoI meant to check this in with the last check in (CVS disturbs me
Michael W. Hudson [Thu, 31 Mar 2005 10:28:30 +0000 (10:28 +0000)] 
I meant to check this in with the last check in (CVS disturbs me
sometimes)

20 years agoBackport:
Michael W. Hudson [Thu, 31 Mar 2005 10:22:43 +0000 (10:22 +0000)] 
Backport:

Fix for rather inaccurately titled bug

1165306 ] Property access with decorator makes interpreter crash

Don't allow the creation of unbound methods with NULL im_class, because
attempting to call such crashes.

Backport candidate.

20 years agoBackport:
Michael W. Hudson [Thu, 31 Mar 2005 10:20:34 +0000 (10:20 +0000)] 
Backport:

Fixes for

1166660 ] The readline module can cause python to segfault

It seems to me that the code I'm rewriting here attempted to call any
user-supplied hook functions using the thread state of the thread that
called the hook-setting function, as opposed to that of the thread
that is currently executing.  This doesn't work, in general.

Fix this by using the PyGILState API (It wouldn't be that hard to
define a dummy version of said API when #ifndef WITH_THREAD, would
it?).

Also, check the conversion to integer of the return value of a hook
function for errors (this problem was mentioned in the ipython bug
report linked to in the above bug).

20 years agoSF bug #1770766: weakref proxy has incorrect __nonzero__ behavior.
Raymond Hettinger [Thu, 31 Mar 2005 04:07:55 +0000 (04:07 +0000)] 
SF bug #1770766:  weakref proxy has incorrect __nonzero__ behavior.

20 years agoThis commit was manufactured by cvs2svn to create tag 'r241'. v2.4.1
cvs2svn [Wed, 30 Mar 2005 03:01:43 +0000 (03:01 +0000)] 
This commit was manufactured by cvs2svn to create tag 'r241'.

20 years ago*** empty log message ***
Anthony Baxter [Wed, 30 Mar 2005 03:01:43 +0000 (03:01 +0000)] 
*** empty log message ***

20 years agoprepare for Python 2.4.1 final
Fred Drake [Tue, 29 Mar 2005 15:57:11 +0000 (15:57 +0000)] 
prepare for Python 2.4.1 final

20 years agoupdates to NEWS
Anthony Baxter [Tue, 29 Mar 2005 12:38:37 +0000 (12:38 +0000)] 
updates to NEWS