]> granicus.if.org Git - python/log
python
19 years agoSF bug #1209411: divmod documentation shd reference // not /
Raymond Hettinger [Tue, 31 May 2005 11:04:00 +0000 (11:04 +0000)]
SF bug #1209411:  divmod documentation shd reference // not /

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

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

19 years agoAdd permissions for Reinhold Birkenfeld.
Raymond Hettinger [Sat, 28 May 2005 23:20:09 +0000 (23:20 +0000)]
Add permissions for Reinhold Birkenfeld.

19 years agoThis is my patch:
Michael W. Hudson [Fri, 27 May 2005 15:23:20 +0000 (15:23 +0000)]
This is my patch:

1181301 ] make float packing copy bytes when they can

which hasn't been reviewed, despite numerous threats to check it in
anyway if noone reviews it.  Please read the diff on the checkin list,
at least!

The basic idea is to examine the bytes of some 'probe values' to see if
the current platform is a IEEE 754-ish platform, and if so
_PyFloat_{Pack,Unpack}{4,8} just copy bytes around.

The rest is hair for testing, and tests.

19 years agoFix test_site to not call open('...', 'wU'), as that now raises an error.
Michael W. Hudson [Fri, 27 May 2005 14:58:06 +0000 (14:58 +0000)]
Fix test_site to not call open('...', 'wU'), as that now raises an error.

Is anyone running the test suite regularly at the moment?

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

19 years agoFix:
Michael W. Hudson [Thu, 26 May 2005 07:58:22 +0000 (07:58 +0000)]
Fix:

1207501 ] Issue in grammar

We didn't define dotted_name in the pseudo-grammar in the reference
docs.  Backport candidate.

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

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

19 years agoDisallow opening files with modes 'aU' or 'wU' as specified by PEP
Skip Montanaro [Fri, 20 May 2005 03:07:06 +0000 (03:07 +0000)]
Disallow opening files with modes 'aU' or 'wU' as specified by PEP
278. Closes bug 967182.

19 years agoPatch #1197318: Cygwin case-sensitive import patch
Jason Tishler [Fri, 20 May 2005 00:56:54 +0000 (00:56 +0000)]
Patch #1197318: Cygwin case-sensitive import patch

A problem regarding importing symlinked modules was recently reported on the
Cygwin mailing list:

    http://cygwin.com/ml/cygwin/2005-04/msg00257.html

The following test case demonstrates the problem:

$ ls -l
total 1
lrwxrwxrwx    1 jt       None            6 Apr 23 13:32 bar.py -> foo.py
-rw-r--r--    1 jt       None           24 Apr 18 20:13 foo.py

$ python -c 'import bar'
Traceback (most recent call last):
File "<string>", line 1, in ?
ImportError: No module named bar

Since Cygwin's case_ok() uses a modified version of the Windows's version, the
symlinked bar module actually resolves to file foo.py instead of bar.py. This
obviously causes the matching code to fail (regardless of case).

The patch fixes this problem by making Cygwin use the Mac OS X case_ok()
instead of a modified Window's version.

19 years agoWhitespace normalization.
Tim Peters [Wed, 18 May 2005 02:18:09 +0000 (02:18 +0000)]
Whitespace normalization.

19 years agoAdd O_SHLOCK & O_EXLOCK. Closes patch #1103951.
Skip Montanaro [Mon, 16 May 2005 02:42:22 +0000 (02:42 +0000)]
Add O_SHLOCK & O_EXLOCK.  Closes patch #1103951.

19 years agoFixed a quite misleading comment: a "not" should not have been there.
Armin Rigo [Sun, 15 May 2005 15:32:08 +0000 (15:32 +0000)]
Fixed a quite misleading comment: a "not" should not have been there.

19 years agoThis test relied on short-circuiting details of dictobject.py to avoid
Armin Rigo [Sun, 15 May 2005 13:29:26 +0000 (13:29 +0000)]
This test relied on short-circuiting details of dictobject.py to avoid
crashing, and indirectly on the fact that hash codes in
random.randrange(1000000000) were very unlikely to exhibit collisions.
To see the problem, replace this number with 500 and observe the crash on
either del target[key] or del keys[i].

The fix prevents recursive mutation, just as in the key insertion case.

19 years agoAdd better datetime support to xmlrpclib module. Closes patch #1120353.
Skip Montanaro [Sat, 14 May 2005 20:54:16 +0000 (20:54 +0000)]
Add better datetime support to xmlrpclib module.  Closes patch #1120353.

19 years agoSF patch #1200051: Small optimization for PyDict_Merge()
Raymond Hettinger [Sat, 14 May 2005 18:08:25 +0000 (18:08 +0000)]
SF patch #1200051:  Small optimization for PyDict_Merge()
(Contributed by Barry Warsaw and Matt Messier.)

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

19 years agocredit source of idea for recent doc changes
Skip Montanaro [Thu, 12 May 2005 13:44:23 +0000 (13:44 +0000)]
credit source of idea for recent doc changes

19 years agoIncorporate a lightly edited version of the SocketServer module's docstring
Skip Montanaro [Thu, 12 May 2005 13:42:42 +0000 (13:42 +0000)]
Incorporate a lightly edited version of the SocketServer module's docstring
into the docs and segregate the method descriptions for the various classes
into separate sections.  Base on suggestion by Paul Rubin in c.l.py.

19 years agoImprove subprocess link error notification
Kurt B. Kaiser [Tue, 10 May 2005 03:44:24 +0000 (03:44 +0000)]
Improve subprocess link error notification
M NEWS.txt
M PyShell.py
M rpc.py

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

19 years agoUse Queue's blocking feature instead of sleeping in the main
Kurt B. Kaiser [Thu, 5 May 2005 23:29:54 +0000 (23:29 +0000)]
Use Queue's blocking feature instead of sleeping in the main
loop.  Patch # 1190163 Michiel de Hoon

19 years agoDon't use 'is not' to compare strings.
Michael W. Hudson [Wed, 4 May 2005 11:59:38 +0000 (11:59 +0000)]
Don't use 'is not' to compare strings.
(spotted by reading pypy-svn :)

19 years agoUpdate Paul Prescod's permissions.
Raymond Hettinger [Sat, 30 Apr 2005 21:25:19 +0000 (21:25 +0000)]
Update Paul Prescod's permissions.

19 years agoSF patch #1191489: Simplify logic in random.py
Raymond Hettinger [Sat, 30 Apr 2005 09:02:51 +0000 (09:02 +0000)]
SF patch #1191489: Simplify logic in random.py

19 years agoFix error in a docstring where a single quote started the docstring but triple
Brett Cannon [Sat, 30 Apr 2005 05:50:19 +0000 (05:50 +0000)]
Fix error in a docstring where a single quote started the docstring but triple
quote ended it.

Closes bug #1192777.  Thanks Christopher Smith.

19 years agoFixed a typo in docstring I happened upon.
Guido van Rossum [Sat, 30 Apr 2005 00:20:35 +0000 (00:20 +0000)]
Fixed a typo in docstring I happened upon.

19 years agoSF bug #1190451: 6.9 First sentence is confusing
Raymond Hettinger [Thu, 28 Apr 2005 07:18:47 +0000 (07:18 +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.

19 years agoFix
Michael W. Hudson [Wed, 27 Apr 2005 09:41:23 +0000 (09:41 +0000)]
Fix

[ python-Bugs-1190599 ] dir() docs show incorrect output

though not entirely how it's suggested in the bug report.

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

19 years agoMake subclasses of int, long, complex, float, and unicode perform type
Brett Cannon [Tue, 26 Apr 2005 03:45:26 +0000 (03:45 +0000)]
Make subclasses of int, long, complex, float, and unicode perform type
conversion using the proper magic slot (e.g., __int__()).  Also move conversion
code out of PyNumber_*() functions in the C API into the nb_* function.

Applied patch #1109424.  Thanks Walter Doewald.

19 years agoMake parse_makefile fallback to environment variables if nothing is
Martin v. Löwis [Mon, 25 Apr 2005 07:14:03 +0000 (07:14 +0000)]
Make parse_makefile fallback to environment variables if nothing is
defined in the makefile. Get CFLAGS from the Makefile, instead of
getting OPT, BASE_CFLAGS and EXTRA_CFLAGS individually.

19 years agoIntroduced EXTRA_CFLAGS as an environment variable used by the Makefile. Meant
Brett Cannon [Sun, 24 Apr 2005 22:26:38 +0000 (22:26 +0000)]
Introduced EXTRA_CFLAGS as an environment variable used by the Makefile.  Meant
to be used for flags that change binary compatibility.

Distutils was tweaked to also use the variable if used during compilation of
the interpreter.

19 years agoUpdate test to the current readline() behaviour.
Walter Dörwald [Thu, 21 Apr 2005 21:45:36 +0000 (21:45 +0000)]
Update test to the current readline() behaviour.

19 years agoFix comment.
Walter Dörwald [Thu, 21 Apr 2005 21:42:35 +0000 (21:42 +0000)]
Fix comment.

19 years agoIf the data read from the bytestream in readline() ends in a '\r' read one more
Walter Dörwald [Thu, 21 Apr 2005 21:32:03 +0000 (21:32 +0000)]
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.

19 years agoClarify usage of OPT by noting that if it is set the default values will be
Brett Cannon [Wed, 20 Apr 2005 20:49:39 +0000 (20:49 +0000)]
Clarify usage of OPT by noting that if it is set the default values will be
left out.

19 years agoFix tests dependent on the exception raised by non-settable descriptors.
Barry Warsaw [Wed, 20 Apr 2005 19:41:36 +0000 (19:41 +0000)]
Fix tests dependent on the exception raised by non-settable descriptors.

19 years agoWhitespace normalization.
Tim Peters [Wed, 20 Apr 2005 17:45:13 +0000 (17:45 +0000)]
Whitespace normalization.

19 years agoAs per discussion on python-dev, descriptors defined in C with a NULL setter
Barry Warsaw [Tue, 19 Apr 2005 23:43:40 +0000 (23:43 +0000)]
As per discussion on python-dev, descriptors defined in C with a NULL setter
now raise AttributeError instead of TypeError, for consistency with their
pure-Python equivalent.

19 years agoAdd a line explaining what env var to use to set the compiler flags and an
Brett Cannon [Tue, 19 Apr 2005 20:28:09 +0000 (20:28 +0000)]
Add a line explaining what env var to use to set the compiler flags and an
example of how to do it so that it is passed directly to ./configure .

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

19 years agoFix:
Michael W. Hudson [Mon, 18 Apr 2005 08:46:17 +0000 (08:46 +0000)]
Fix:

1176893 ] Readline segfault

by unsilly-ing PyGILState_Release().

Backport candidate.

19 years agoUpdated to work with current Python docs setup, and added a minimal README.
Jack Jansen [Sun, 17 Apr 2005 21:30:52 +0000 (21:30 +0000)]
Updated to work with current Python docs setup, and added a minimal README.

19 years agoFix building of spwd; was incorrectly checking for the needed HAVE_* values to
Brett Cannon [Fri, 15 Apr 2005 20:32:39 +0000 (20:32 +0000)]
Fix building of spwd; was incorrectly checking for the needed HAVE_* values to
properly build the module.

Also moved up the creation of config_h_vars (from
distutils.sysconfig.parse_config_h()) higher on up in detect_modules() so that
it can be used sooner).

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

19 years agotypo fix, thanks Jeremy Sanders
Anthony Baxter [Fri, 15 Apr 2005 06:17:20 +0000 (06:17 +0000)]
typo fix, thanks Jeremy Sanders

19 years agoSF patch #1180062 by George Yoshida:
Walter Dörwald [Thu, 14 Apr 2005 20:08:59 +0000 (20:08 +0000)]
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.

19 years agoUpdate permissions for Finn Bock.
Raymond Hettinger [Wed, 13 Apr 2005 22:04:21 +0000 (22:04 +0000)]
Update permissions for Finn Bock.

19 years agoget_method() returns a method name, not take it as an argument
Fred Drake [Wed, 13 Apr 2005 01:08:23 +0000 (01:08 +0000)]
get_method() returns a method name, not take it as an argument
(backporting to release24-maint branch)

19 years agoFix HTTP method handler example so that method names in uppercases
Hye-Shik Chang [Tue, 12 Apr 2005 02:49:52 +0000 (02:49 +0000)]
Fix HTTP method handler example so that method names in uppercases
can be processed.  (Submitted by Jooncheol Park)

19 years agoUpdate permissions for Eric Price.
Raymond Hettinger [Mon, 11 Apr 2005 03:11:11 +0000 (03:11 +0000)]
Update permissions for Eric Price.

19 years agoSF bug #1180392: StringIO's docs should mention overwriting of initial value
Raymond Hettinger [Mon, 11 Apr 2005 01:03:44 +0000 (01:03 +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.

19 years agoSF bug #1179957: Missing def'n of equality for set elements
Raymond Hettinger [Sun, 10 Apr 2005 17:32:35 +0000 (17:32 +0000)]
SF bug #1179957:  Missing def'n of equality for set elements

19 years agoUpdate status for Irme de Jong.
Raymond Hettinger [Sun, 10 Apr 2005 16:36:16 +0000 (16:36 +0000)]
Update status for Irme de Jong.

19 years agoSF patch 1179503: Fix typos in rpc.py
Raymond Hettinger [Sun, 10 Apr 2005 16:21:07 +0000 (16:21 +0000)]
SF patch 1179503:  Fix typos in rpc.py

* Call to unpack_int() should have no arguments
* Misspelled BadRPCVerspion exception
* Replace <> with !=

19 years agoFill out one section
Andrew M. Kuchling [Sat, 9 Apr 2005 23:59:41 +0000 (23:59 +0000)]
Fill out one section

19 years agoAdd more text
Andrew M. Kuchling [Sat, 9 Apr 2005 15:51:44 +0000 (15:51 +0000)]
Add more text

19 years ago* Fix error in definition of Im() which returned self instead of 0
Raymond Hettinger [Sat, 9 Apr 2005 14:55:07 +0000 (14:55 +0000)]
* Fix error in definition of Im() which returned self instead of 0
  for non-complex arguments.

* Replace type() comparisons with isinstance() checks.

* Replace apply() calls with equivalent syntactic form.

* Simplify __hash__ definition to hash the underlying tuple.

* Use math.hypot() for more robust computation of __abs__().

* Use sorted() instead of the multi-step keys/sort/iter.

* Update comment on the cmath module.

19 years agoPatch #1177597: Fix various bugs in Demo/classes/Complex.py.
Martin v. Löwis [Sat, 9 Apr 2005 10:53:34 +0000 (10:53 +0000)]
Patch #1177597: Fix various bugs in Demo/classes/Complex.py.

19 years agoPatch #1177597: Correct various bugs, add comments.
Martin v. Löwis [Sat, 9 Apr 2005 10:51:19 +0000 (10:51 +0000)]
Patch #1177597: Correct various bugs, add comments.

19 years agoAdd grammar change for allowing ``class B(): pass`` syntax.
Brett Cannon [Sat, 9 Apr 2005 03:03:00 +0000 (03:03 +0000)]
Add grammar change for allowing ``class B(): pass`` syntax.

19 years agoFlush out support for ``class B(): pass`` syntax by adding support to the
Brett Cannon [Sat, 9 Apr 2005 02:30:16 +0000 (02:30 +0000)]
Flush out support for ``class B(): pass`` syntax by adding support to the
'parser' module and 'compiler' package.

Closes patch #1176012.  Thanks logistix.

19 years agoAdd test for ``class B1(): pass``.
Brett Cannon [Sat, 9 Apr 2005 01:27:37 +0000 (01:27 +0000)]
Add test for ``class B1(): pass``.

19 years agoRecord removal of permissions for Charles Waldman.
Raymond Hettinger [Fri, 8 Apr 2005 20:43:19 +0000 (20:43 +0000)]
Record removal of permissions for Charles Waldman.

19 years agoAdd ESR info.
Tim Peters [Fri, 8 Apr 2005 20:02:08 +0000 (20:02 +0000)]
Add ESR info.

19 years agoRecord a drop request by Ken Manheimer.
Raymond Hettinger [Fri, 8 Apr 2005 19:09:19 +0000 (19:09 +0000)]
Record a drop request by Ken Manheimer.

19 years agoRecord a drop request by Moshe Zadka.
Raymond Hettinger [Fri, 8 Apr 2005 18:36:14 +0000 (18:36 +0000)]
Record a drop request by Moshe Zadka.

19 years agotest_default_encoding_issues(): Fully restore sys.setdefaultencoding.
Tim Peters [Fri, 8 Apr 2005 18:00:59 +0000 (18:00 +0000)]
test_default_encoding_issues():  Fully restore sys.setdefaultencoding.

test_site often failed under "regrtest.py -r", because this xmlrpc test
left sys with a setdefaultencoding attribute, but loading site.py removes
that attribute and test_site.py verifies the attribute is gone.  Changed
this test to get rid of sys.setdefaultencoding if it didn't exist when
this test started.

Don't know whether this is a bugfix (backport) candidate.

19 years agoInfo about Eric Price.
Tim Peters [Fri, 8 Apr 2005 17:16:28 +0000 (17:16 +0000)]
Info about Eric Price.

19 years agoUpdate permissions log for Reedy, Holden, Haring, and Cole.
Raymond Hettinger [Fri, 8 Apr 2005 03:19:09 +0000 (03:19 +0000)]
Update permissions log for Reedy, Holden, Haring, and Cole.

19 years agoIn a threads-disabled build, typing Ctrl-C into a raw_input() crashed,
Michael W. Hudson [Thu, 7 Apr 2005 10:11:19 +0000 (10:11 +0000)]
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!

Backport candidate.

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

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

19 years agoMake that a C, not a C++, comment.
Michael W. Hudson [Wed, 6 Apr 2005 13:05:18 +0000 (13:05 +0000)]
Make that a C, not a C++, comment.

19 years agoAdd a comment explaining the import of longintrepr.h.
Michael W. Hudson [Wed, 6 Apr 2005 11:27:40 +0000 (11:27 +0000)]
Add a comment explaining the import of longintrepr.h.

19 years agoBy popular demand from Linux-heads(!), renamed developers to developers.txt.
Tim Peters [Wed, 6 Apr 2005 00:59:02 +0000 (00:59 +0000)]
By popular demand from Linux-heads(!), renamed developers to developers.txt.

19 years agoBegin a log of developer permissions.
Raymond Hettinger [Tue, 5 Apr 2005 22:35:15 +0000 (22:35 +0000)]
Begin a log of developer permissions.

19 years agoSF bug #1168983: ftplib.py string index out of range
Raymond Hettinger [Tue, 5 Apr 2005 04:31:09 +0000 (04:31 +0000)]
SF bug #1168983:  ftplib.py string index out of range

* resp[:1] in '123' # after Py2.2, this allowed blank responses to pass.
* replace <> with !=
* provide a usage message for empty command line calls

Backport candidate.

19 years agoFix typos.
Walter Dörwald [Mon, 4 Apr 2005 21:42:22 +0000 (21:42 +0000)]
Fix typos.

19 years agoFix for SF bug #1175396: readline() will now read one more character, if
Walter Dörwald [Mon, 4 Apr 2005 21:38:47 +0000 (21:38 +0000)]
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 ensure that we
get the correct number of lines (i.e. this "\n" will not be treated as
another line ending.)

19 years agoFill docstrings for module and functions, extracted from the tex
Hye-Shik Chang [Mon, 4 Apr 2005 16:32:07 +0000 (16:32 +0000)]
Fill docstrings for module and functions, extracted from the tex
documentation.  (Patch #1173245, Contributed by Jeremy Yallop)

19 years agoMake a handy macro, Py_DEFAULT_RECURSION_LIMIT to allow to define
Hye-Shik Chang [Mon, 4 Apr 2005 15:49:02 +0000 (15:49 +0000)]
Make a handy macro, Py_DEFAULT_RECURSION_LIMIT to allow to define
a default value of recursion limit from build systems.  1000 levels
are still too high for some 64bit systems.

19 years agoFix testcase for 64bit BSD systems: long is 8 bytes for those systems
Hye-Shik Chang [Mon, 4 Apr 2005 15:21:04 +0000 (15:21 +0000)]
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.

19 years agoAdded threadName to LogRecord
Vinay Sajip [Thu, 31 Mar 2005 20:18:06 +0000 (20:18 +0000)]
Added threadName to LogRecord

19 years agoAdded threadName and now using re-entrant lock
Vinay Sajip [Thu, 31 Mar 2005 20:16:55 +0000 (20:16 +0000)]
Added threadName and now using re-entrant lock

19 years agoSince PyPI only accepts UTF-8 encoded data now, make sure that the data is
Walter Dörwald [Thu, 31 Mar 2005 13:57:38 +0000 (13:57 +0000)]
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.

19 years agoNEWS entries for the bugs I fixed yesterday.
Michael W. Hudson [Thu, 31 Mar 2005 09:35:44 +0000 (09:35 +0000)]
NEWS entries for the bugs I fixed yesterday.

19 years agoI suppose a bug report or even a fix would be a better response, but
Michael W. Hudson [Wed, 30 Mar 2005 16:41:55 +0000 (16:41 +0000)]
I suppose a bug report or even a fix would be a better response, but
commit a yelp about a noted flaw the error messages for METH_KEYWORDS
functions under some circumstances.

19 years agoFix for rather inaccurately titled bug
Michael W. Hudson [Wed, 30 Mar 2005 16:32:10 +0000 (16:32 +0000)]
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.

19 years agoMinor wording fix.
Michael W. Hudson [Wed, 30 Mar 2005 16:25:34 +0000 (16:25 +0000)]
Minor wording fix.

19 years agoFixes for
Michael W. Hudson [Wed, 30 Mar 2005 11:21:53 +0000 (11:21 +0000)]
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).

19 years agoBe a bit more accurate.
Michael W. Hudson [Wed, 30 Mar 2005 10:09:12 +0000 (10:09 +0000)]
Be a bit more accurate.

19 years agoI don't think it's particularly accurate to say Guido is maintaining
Michael W. Hudson [Wed, 30 Mar 2005 09:38:12 +0000 (09:38 +0000)]
I don't think it's particularly accurate to say Guido is maintaining
this module any more.

19 years agoadd 2.4.1 to the release history
Fred Drake [Tue, 29 Mar 2005 16:06:51 +0000 (16:06 +0000)]
add 2.4.1 to the release history

19 years agomerge from branch
Anthony Baxter [Tue, 29 Mar 2005 16:05:36 +0000 (16:05 +0000)]
merge from branch

19 years agoUpdate NEWS for patch 1171735 (Darwin 8 build fixes)
Bob Ippolito [Tue, 29 Mar 2005 13:47:59 +0000 (13:47 +0000)]
Update NEWS for patch 1171735 (Darwin 8 build fixes)

19 years agoMove exception finalisation later in the shutdown process - this
Anthony Baxter [Tue, 29 Mar 2005 13:36:16 +0000 (13:36 +0000)]
Move exception finalisation later in the shutdown process - this
fixes the crash seen in bug #1165761

19 years agoSF patch 1167316: doctest.py fails self-test if run directly.
Tim Peters [Mon, 28 Mar 2005 23:50:54 +0000 (23:50 +0000)]
SF patch 1167316:  doctest.py fails self-test if run directly.

Patch by Ilya Sandler.

Bugfix candidate.