]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Jack Jansen [Tue, 18 Nov 2003 22:36:12 +0000 (22:36 +0000)]
Test the applesingle decoder.
Martin v. Löwis [Tue, 18 Nov 2003 20:00:44 +0000 (20:00 +0000)]
Patch #836434: Use dlopen/dlsym on AIX if available. Also disable
_XOPEN_SOURCE on AIX 4.
Martin v. Löwis [Tue, 18 Nov 2003 19:54:20 +0000 (19:54 +0000)]
Patch #841807: Check whether a versioned libpython.so symlink is needed
in altbininstall. Backported to 2.3.
Martin v. Löwis [Tue, 18 Nov 2003 19:48:57 +0000 (19:48 +0000)]
Patch #843088: Fix typos. Backported to 2.3.
Martin v. Löwis [Tue, 18 Nov 2003 19:46:25 +0000 (19:46 +0000)]
Patch #794400: Let PYTHONSTARTUP influence the compiler flags.
Guido van Rossum [Tue, 18 Nov 2003 19:27:19 +0000 (19:27 +0000)]
Implement straightforward suggestions from gcc warnings (remove unused
variable, add extra braces).
Raymond Hettinger [Tue, 18 Nov 2003 17:50:34 +0000 (17:50 +0000)]
Documentation for set objects.
Raymond Hettinger [Tue, 18 Nov 2003 14:15:31 +0000 (14:15 +0000)]
Use PySequence_Contains() instead of direct access macro.
Raymond Hettinger [Mon, 17 Nov 2003 16:42:33 +0000 (16:42 +0000)]
Various fixups (most suggested by Armin Rigo).
Raymond Hettinger [Sun, 16 Nov 2003 16:36:58 +0000 (16:36 +0000)]
Fix output spacing typo
Raymond Hettinger [Sun, 16 Nov 2003 16:17:49 +0000 (16:17 +0000)]
* Migrate set() and frozenset() from the sandbox.
* Install the unittests, docs, newsitem, include file, and makefile update.
* Exercise the new functions whereever sets.py was being used.
Includes the docs for libfuncs.tex. Separate docs for the types are
forthcoming.
Raymond Hettinger [Sun, 16 Nov 2003 13:44:19 +0000 (13:44 +0000)]
Fix typo
Raymond Hettinger [Sat, 15 Nov 2003 12:40:28 +0000 (12:40 +0000)]
Change ValueErrors to TypeErrors and add PyList_Check() assertions.
Raymond Hettinger [Sat, 15 Nov 2003 12:33:01 +0000 (12:33 +0000)]
Verify heappop argument is a list.
Thomas Heller [Fri, 14 Nov 2003 10:33:20 +0000 (10:33 +0000)]
Mention patch #841977: modulefinder didn't find extension modules in packages
Backported to release-maint23
Thomas Heller [Fri, 14 Nov 2003 10:28:42 +0000 (10:28 +0000)]
SF #841977 - modulefinder fails to find extension modules in packages
The find_all_submodules() method in modulefinder only
looks for *.py, *.pyc, and *.pyo files. Python
extension modules are only found if they are referenced
in import statements somewhere.
This patch uses the actual list from imp.get_suffixes().
Backported myself.
Tim Peters [Fri, 14 Nov 2003 00:01:17 +0000 (00:01 +0000)]
update_refs(): assert that incoming refcounts aren't 0. The comment
for this function has always claimed that was true, but it wasn't
verified before. For the latest batch of "double deallocation" bugs
(stemming from weakref callbacks invoked by way of subtype_dealloc),
this assert would have triggered (instead of waiting for
_Py_ForgetReference to die with a segfault later).
Tim Peters [Thu, 13 Nov 2003 22:50:00 +0000 (22:50 +0000)]
subtype_dealloc(): Simplified overly contorted retracking logic. With
this change, I think subtype_dealloc is actually a smidgen less obscure
than it was in 2.3 -- we got rid of a negation in an "if" <wink>.
Tim Peters [Thu, 13 Nov 2003 21:59:32 +0000 (21:59 +0000)]
subtype_dealloc(): A more complete fix for critical bug 840829 +
expanded the test case with a piece that needs the more-complete fix.
I'll backport this to 2.3 maint.
Andrew M. Kuchling [Thu, 13 Nov 2003 21:33:26 +0000 (21:33 +0000)]
Various edits
Gregory P. Smith [Thu, 13 Nov 2003 08:30:03 +0000 (08:30 +0000)]
remove "support" for BerkeleyDB 3.1, it hasn't worked for a long time
Martin v. Löwis [Thu, 13 Nov 2003 07:45:39 +0000 (07:45 +0000)]
Patch #839877: Remove unused lambda expression.
Martin v. Löwis [Thu, 13 Nov 2003 07:43:21 +0000 (07:43 +0000)]
Patch #804543: strdup saved locales. Backported to 2.3.
Tim Peters [Wed, 12 Nov 2003 20:43:28 +0000 (20:43 +0000)]
SF bug 840829: weakref callbacks and gc corrupt memory.
subtype_dealloc(): This left the dying object exposed to gc, so that
if cyclic gc triggered during the weakref callback, gc tried to delete
the dying object a second time. That's a disaster. subtype_dealloc()
had a (I hope!) unique problem here, as every normal dealloc routine
untracks the object (from gc) before fiddling with weakrefs etc. But
subtype_dealloc has obscure technical reasons for re-registering the
dying object with gc (already explained in a large comment block at
the bottom of the function).
The fix amounts to simply refraining from reregistering the dying object
with gc until after the weakref callback (if any) has been called.
This is a critical bug (hard to predict, and causes seemingly random
memory corruption when it occurs). I'll backport it to 2.3 later.
Tim Peters [Wed, 12 Nov 2003 19:30:36 +0000 (19:30 +0000)]
pyexpat stopped building on Windows -- whining about the lack of a
HAVE_MEMMOVE define. Just defined it on the cmdline (it doesn't
include Python.h, and Fred doesn't want to change the code).
Raymond Hettinger [Wed, 12 Nov 2003 16:42:10 +0000 (16:42 +0000)]
Fix typo
Raymond Hettinger [Wed, 12 Nov 2003 16:39:30 +0000 (16:39 +0000)]
Explain the advantages of reversed.
Raymond Hettinger [Wed, 12 Nov 2003 16:27:50 +0000 (16:27 +0000)]
Present each feature in terms of what makes it useful or desirable.
Raymond Hettinger [Wed, 12 Nov 2003 15:21:20 +0000 (15:21 +0000)]
Improve backwards compatibility code to handle True/False.
Raymond Hettinger [Wed, 12 Nov 2003 14:32:26 +0000 (14:32 +0000)]
Improve the implementation of itertools.tee().
Formerly, underlying queue was implemented in terms of two lists. The
new queue is a series of singly-linked fixed length lists.
The new implementation runs much faster, supports multi-way tees, and
allows tees of tees without additional memory costs.
The root ideas for this structure were contributed by Andrew Koenig
and Guido van Rossum.
Neil Schemenauer [Tue, 11 Nov 2003 19:39:17 +0000 (19:39 +0000)]
Make Message.__str__ more efficient.
Fred Drake [Mon, 10 Nov 2003 14:50:54 +0000 (14:50 +0000)]
fix typo in markup
Fred Drake [Mon, 10 Nov 2003 14:48:48 +0000 (14:48 +0000)]
fix use of undefined markup
Fred Drake [Mon, 10 Nov 2003 14:43:16 +0000 (14:43 +0000)]
add missing "if"
Martin v. Löwis [Mon, 10 Nov 2003 06:46:15 +0000 (06:46 +0000)]
Mention that getsid is new in 2.4.
Martin v. Löwis [Mon, 10 Nov 2003 06:44:44 +0000 (06:44 +0000)]
Patch #798297: Add IMAP THREAD command.
Martin v. Löwis [Mon, 10 Nov 2003 06:35:36 +0000 (06:35 +0000)]
Patch #839038: Add getsid(2).
Guido van Rossum [Mon, 10 Nov 2003 02:27:19 +0000 (02:27 +0000)]
Plug tempfile.mktemp() hole (Iustin Pop).
Guido van Rossum [Mon, 10 Nov 2003 02:16:36 +0000 (02:16 +0000)]
mktemp() shouldn't rely on os.path.exists(), which can return False if
the file is a symlink. Instead, use os.lstat directly, if it exists;
fall back on os.stat or the built-in open. Thanks to Iustin Pop.
Alex Martelli [Sun, 9 Nov 2003 16:44:09 +0000 (16:44 +0000)]
fixed wrong error checking on fcntl call as per SF bug # 821896
(same as commit of Sun Nov 2 to the release23-maint branch)
Alex Martelli [Sun, 9 Nov 2003 16:41:38 +0000 (16:41 +0000)]
fixed obvious bug in _send_header as per SF bug #831271
(same as commit of Sun Nov 2 to the release23-maint branch)
Alex Martelli [Sun, 9 Nov 2003 16:38:39 +0000 (16:38 +0000)]
fixed buggy comment as per SF bug #827856
(same as commit of Sun Nov 2 to the release23-maint branch)
Alex Martelli [Sun, 9 Nov 2003 16:33:56 +0000 (16:33 +0000)]
clarified (in the 5.14 summary) that tests and comparisons all chain,
added a specific \ref to 5.9 in lieu of previous vague "see above".
(same as commit of Sun Nov 2 to the release23-maint branch)
Alex Martelli [Sun, 9 Nov 2003 16:32:54 +0000 (16:32 +0000)]
Add docs for readmodule_ex and its function-descriptors, fixing
sf bug#812818.
(same as commit of Sun Nov 2 to the release23-maint branch)
Alex Martelli [Sun, 9 Nov 2003 16:31:18 +0000 (16:31 +0000)]
Avoid giving advice that's bad for security, as per SF bug #823515
(same as commit of Sun Nov 2 to the release23-maint branch)
Brett Cannon [Sun, 9 Nov 2003 04:15:30 +0000 (04:15 +0000)]
Document Py_RETURN_NONE.
Andrew M. Kuchling [Sat, 8 Nov 2003 16:05:37 +0000 (16:05 +0000)]
Add 'see also' section pointing to the PEP
Andrew M. Kuchling [Sat, 8 Nov 2003 15:58:49 +0000 (15:58 +0000)]
Add some recent changes
Raymond Hettinger [Sat, 8 Nov 2003 12:39:53 +0000 (12:39 +0000)]
Update test to handle list.__reversed__().
Raymond Hettinger [Sat, 8 Nov 2003 11:58:44 +0000 (11:58 +0000)]
Improve the reverse list iterator to free memory as soon as the iterator
is exhausted.
Raymond Hettinger [Sat, 8 Nov 2003 11:40:03 +0000 (11:40 +0000)]
SF bug #835457: Small typo in logging documentation
Raymond Hettinger [Sat, 8 Nov 2003 11:35:22 +0000 (11:35 +0000)]
Minor code fixup. Make sure that len reflects the current list size.
Raymond Hettinger [Sat, 8 Nov 2003 10:24:38 +0000 (10:24 +0000)]
Convert heapq.py to a C implementation.
Raymond Hettinger [Fri, 7 Nov 2003 15:38:09 +0000 (15:38 +0000)]
Optimize reversed(list) using a custom iterator.
Michael W. Hudson [Fri, 7 Nov 2003 11:45:34 +0000 (11:45 +0000)]
Fix the problem addressed by patch
[ 819012 ] Fix for former/latter confusion in Extending documentation
although not by using supplied patch.
Raymond Hettinger [Fri, 7 Nov 2003 01:30:58 +0000 (01:30 +0000)]
Add a new looping idiom
Martin v. Löwis [Thu, 6 Nov 2003 21:08:11 +0000 (21:08 +0000)]
Patch #837322: Clarify owning, borrowing, stealing. Backported to 2.3.
Martin v. Löwis [Thu, 6 Nov 2003 20:47:57 +0000 (20:47 +0000)]
Overallocate target buffer for normalization more early. Fixes #834676.
Backported to 2.3.
Raymond Hettinger [Thu, 6 Nov 2003 14:06:48 +0000 (14:06 +0000)]
Implement and apply PEP 322, reverse iteration
Neil Schemenauer [Wed, 5 Nov 2003 23:03:00 +0000 (23:03 +0000)]
Add traceback.format_exc().
Jeremy Hylton [Wed, 5 Nov 2003 17:29:35 +0000 (17:29 +0000)]
Make undetected error on stack unwind a fatal error.
Anthony Baxter [Tue, 4 Nov 2003 14:35:49 +0000 (14:35 +0000)]
missing news entry
Gregory P. Smith [Mon, 3 Nov 2003 21:35:31 +0000 (21:35 +0000)]
* SF patch 835100 - C++ // comments are not allowed. Use /* */
Jeremy Hylton [Mon, 3 Nov 2003 20:58:28 +0000 (20:58 +0000)]
Fix compiler warning about possible use of n without assignment.
Also fix use of n for two different variables in two different blocks.
Gregory P. Smith [Mon, 3 Nov 2003 01:04:41 +0000 (01:04 +0000)]
* Use weakref's of DBCursor objects for the iterator cursors to avoid a
memory leak that would've occurred for all iterators that were
destroyed before having iterated until they raised StopIteration.
* Simplify some code.
* Add new test cases to check for the memleak and ensure that mixing
iteration with modification of the values for existing keys works.
Raymond Hettinger [Sun, 2 Nov 2003 09:50:56 +0000 (09:50 +0000)]
SF patch #834444: add versionadd to new functions
(Contributed by George Yoshida.)
Raymond Hettinger [Sun, 2 Nov 2003 09:47:05 +0000 (09:47 +0000)]
SF patch #834015: Remove imports of unused modules
(Contributed by George Yoshida.)
Gregory P. Smith [Sun, 2 Nov 2003 09:10:16 +0000 (09:10 +0000)]
* Fix the singlethreaded deadlocks occurring in the simple bsddb interface.
* Add support for multiple iterator/generator objects at once on the simple
bsddb _DBWithCursor interface.
Gregory P. Smith [Sun, 2 Nov 2003 08:06:29 +0000 (08:06 +0000)]
Fix a tuple memory leak when raising DB, DBEnv and DBCursor "object
has been closed" exceptions.
Adds a DBCursorClosedError exception in the closed cursor case for
future use in fixing the legacy bsddb interface deadlock problems
due to its use of cursors with DB_INIT_LOCK | DB_THREAD support
enabled.
Raymond Hettinger [Sun, 2 Nov 2003 05:37:44 +0000 (05:37 +0000)]
Use PyTuple_Pack() to simplify enumerate().
Andrew M. Kuchling [Fri, 31 Oct 2003 19:52:30 +0000 (19:52 +0000)]
[Bug #817178] Fix incorrect arguments in example, noted by Terry Reedy
Martin v. Löwis [Fri, 31 Oct 2003 15:42:07 +0000 (15:42 +0000)]
Patch #833710: Set INSTSONAME on Solaris. Backported to 2.3.
Martin v. Löwis [Fri, 31 Oct 2003 15:35:53 +0000 (15:35 +0000)]
Patch #830858: Correct the number of is-functions. Backported to 2.3 and 2.2.
Martin v. Löwis [Fri, 31 Oct 2003 14:02:41 +0000 (14:02 +0000)]
Patch #628301: Update installer to
http://cesnet.dl.sourceforge.net/sourceforge/avpython/Python-2.3.2-Win32-159-Setup.iss
Martin v. Löwis [Fri, 31 Oct 2003 13:49:36 +0000 (13:49 +0000)]
Patch #531629: Add multicall support.
Martin v. Löwis [Fri, 31 Oct 2003 13:05:21 +0000 (13:05 +0000)]
Patch #785689: Use basename in usage. Backported to 2.3.
Martin v. Löwis [Fri, 31 Oct 2003 13:01:24 +0000 (13:01 +0000)]
Patch #787189: Explicitly define CTRL on SGI.
Martin v. Löwis [Fri, 31 Oct 2003 12:52:35 +0000 (12:52 +0000)]
Patch #: Add POP3 over SSL support.
Martin v. Löwis [Fri, 31 Oct 2003 10:01:53 +0000 (10:01 +0000)]
Patch #788404: ignore "b" and "t" mode modifiers in posix_popen.
Fixes #703198. Backported to 2.3.
Raymond Hettinger [Thu, 30 Oct 2003 06:08:32 +0000 (06:08 +0000)]
Fix typo.
Brett Cannon [Thu, 30 Oct 2003 05:42:15 +0000 (05:42 +0000)]
Minor grammatical fix.
Raymond Hettinger [Wed, 29 Oct 2003 07:23:57 +0000 (07:23 +0000)]
Update test to include "sorted" in dir(list).
Raymond Hettinger [Wed, 29 Oct 2003 06:54:43 +0000 (06:54 +0000)]
Add list.sorted() classmethod.
Raymond Hettinger [Wed, 29 Oct 2003 00:46:19 +0000 (00:46 +0000)]
SF bug #827902: ctime is not creation time
New fix for this bug recognizes differing definitions on various systems.
Neal Norwitz [Tue, 28 Oct 2003 21:57:10 +0000 (21:57 +0000)]
SF #775057, fix IDLE problem in about dialog
If the file doesn't exist, the code to display an error message was broken
Will backport.
Skip Montanaro [Tue, 28 Oct 2003 16:24:00 +0000 (16:24 +0000)]
note db2pickle/pickle2db tweaks
Skip Montanaro [Tue, 28 Oct 2003 16:17:54 +0000 (16:17 +0000)]
allow dump/load of gdbm files
Armin Rigo [Tue, 28 Oct 2003 12:17:25 +0000 (12:17 +0000)]
Fixed dis.disassemble_string().
Added dis.findlinestarts().
SF bug 811294
Armin Rigo [Tue, 28 Oct 2003 12:10:38 +0000 (12:10 +0000)]
Documented gc.get_referrers() as dangerous.
SF bug 793822
Armin Rigo [Tue, 28 Oct 2003 12:05:48 +0000 (12:05 +0000)]
Deleting cyclic object comparison.
SF patch 825639
http://mail.python.org/pipermail/python-dev/2003-October/039445.html
Raymond Hettinger [Tue, 28 Oct 2003 07:32:28 +0000 (07:32 +0000)]
Fix nits in error messages.
Raymond Hettinger [Mon, 27 Oct 2003 20:00:36 +0000 (20:00 +0000)]
SF bug #827902: ctime is not creation time
Document the correct definition of os.path.getctime()
Andrew M. Kuchling [Mon, 27 Oct 2003 15:47:48 +0000 (15:47 +0000)]
Docstring fix: XHTML 1.0 entities are supported
Andrew M. Kuchling [Mon, 27 Oct 2003 15:46:16 +0000 (15:46 +0000)]
Fix inaccuracy: all entities from XHTML 1.0 are supported (according to text further down in this file)
Martin v. Löwis [Mon, 27 Oct 2003 14:24:37 +0000 (14:24 +0000)]
Patch #803998: Correctly check for error in SSL_write.
Martin v. Löwis [Mon, 27 Oct 2003 14:07:53 +0000 (14:07 +0000)]
Patch #817854: Add missing operations for SSLFile. Fixes #792101.
Backported to 2.3.
Raymond Hettinger [Mon, 27 Oct 2003 09:22:16 +0000 (09:22 +0000)]
Fix Greg Ward's error message nit: PyObject_SetItem and PySequenceSetItem
had slightly different error messages.
Raymond Hettinger [Sun, 26 Oct 2003 17:20:07 +0000 (17:20 +0000)]
Document that varlist can be NULL.
Steve Purcell [Sun, 26 Oct 2003 16:38:16 +0000 (16:38 +0000)]
Another instance of the same typo.
Raymond Hettinger [Sun, 26 Oct 2003 15:34:50 +0000 (15:34 +0000)]
Replace the window() example with pairwise() which demonstrates tee().