]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
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().
Raymond Hettinger [Sun, 26 Oct 2003 14:25:56 +0000 (14:25 +0000)]
Minor improvements to itertools.tee():
* tee object is no longer subclassable
* independent iterators renamed to "itertools.tee_iterator"
* fixed doc string typo and added entry in the module doc string
Steve Purcell [Sun, 26 Oct 2003 10:41:03 +0000 (10:41 +0000)]
Incorporated patch 819077, from George Yoshida:
* Fixed typo in docstring for 'failUnlessAlmostEqual()'
* Removed unnecessary use of 'float()' for time values.
* Removed apparently unnecessary import of unittest. At some point in
the distant past I believe it was necessary otherwise the 'TestCase'
that a module saw was not the same as the 'TestCase' seen within
'unittest', and the user's TestCase subclasses were not recognised as
subclasses of the TestCase seen within unittest. Seems not to be
necessary now.
Alex Martelli [Sat, 25 Oct 2003 23:24:14 +0000 (23:24 +0000)]
regressing the performance bugfix -- Guido wants the performance bug left
alone, because there can be no guarantee re the semantics of += vs + .
Armin Rigo [Sat, 25 Oct 2003 14:33:09 +0000 (14:33 +0000)]
oh dear. Wrong manipulation. Committed a version of ceval.c from my
no-cyclic-comparison patch at the same time as errors.c.
Reverting ceval.c to the previous revision.
Armin Rigo [Sat, 25 Oct 2003 14:29:27 +0000 (14:29 +0000)]
Made function declaration a proper C prototype
Neal Norwitz [Sat, 25 Oct 2003 14:15:54 +0000 (14:15 +0000)]
SF #829941, update tutorial, built-in types can be base classes since 2.2
Alex Martelli [Sat, 25 Oct 2003 13:02:57 +0000 (13:02 +0000)]
document the performance fix to builtin_sum().
Alex Martelli [Sat, 25 Oct 2003 12:49:56 +0000 (12:49 +0000)]
Changed builtin_sum to use PyNumber_InPlaceAdd (same semantics, but fixes
a performance bug in sum(manylists)), same as in 2.3 maintenance branch.
Raymond Hettinger [Sat, 25 Oct 2003 06:41:37 +0000 (06:41 +0000)]
Use PyArg_UnpackTuple() where possible.
Raymond Hettinger [Sat, 25 Oct 2003 06:37:47 +0000 (06:37 +0000)]
Improvements to coding for itertools.tee():
* Add error checking code to PyList_Append() call.
* Replace PyObject_CallMethod(to->outbasket, "pop", NULL) with equivalent
in-line code. Inlining is important here because the search for the
pop method will occur for every element returned by the iterator.
* Make tee's dealloc() a little smarter. If the trailing iterator is
being deallocated, then the queue data is no longer needed and can
be freed.
Martin v. Löwis [Fri, 24 Oct 2003 20:09:23 +0000 (20:09 +0000)]
Patch #812378: Normalize white space.
Martin v. Löwis [Fri, 24 Oct 2003 20:05:32 +0000 (20:05 +0000)]
Patch #828384: Don't discard nested exception in AddObject.
Andrew M. Kuchling [Fri, 24 Oct 2003 18:26:26 +0000 (18:26 +0000)]
[Patch #772077 from Tim Rice] Fix for compiling the readline module on UnixWare; fix goofy comment indent. 2.3 bugfix candidate
Andrew M. Kuchling [Fri, 24 Oct 2003 17:38:34 +0000 (17:38 +0000)]
[Bug #822668] tarfile raises an exception if the tarfile is gzipped and is too large; the gzip filesize should be written out mod 2**32. (Reported by Johan Fredrik Ohman)
Armin Rigo [Fri, 24 Oct 2003 17:15:29 +0000 (17:15 +0000)]
Fixed bug introduced in revision 1.27
Walter Dörwald [Fri, 24 Oct 2003 14:25:28 +0000 (14:25 +0000)]
Fix a bug in the memory reallocation code of PyUnicode_TranslateCharmap().
charmaptranslate_makespace() allocated more memory than required for the
next replacement but didn't remember that fact, so memory size was growing
exponentially every time a replacement string is longer that one character.
This fixes SF bug #828737.
Raymond Hettinger [Fri, 24 Oct 2003 08:45:23 +0000 (08:45 +0000)]
Added itertools.tee()
It works like the pure python verion except:
* it stops storing data after of the iterators gets deallocated
* the data queue is implemented with two stacks instead of one dictionary.
Guido van Rossum [Thu, 23 Oct 2003 23:54:57 +0000 (23:54 +0000)]
- The pwd module incorrectly advertised its struct type as
struct_pwent; this has been renamed to struct_passwd. (The old name
is still supported for backwards compatibility.)
Andrew M. Kuchling [Thu, 23 Oct 2003 18:08:03 +0000 (18:08 +0000)]
Record an item I missed and bump the version number. [2.3 bugfix candidate.]
Martin v. Löwis [Thu, 23 Oct 2003 15:55:28 +0000 (15:55 +0000)]
Patch #813200: Quote executable path on Windows. Fixes #811082.
Backported to 2.3.
Fred Drake [Thu, 23 Oct 2003 14:33:46 +0000 (14:33 +0000)]
- add "Why is Python installed on my computer?" as a documentation FAQ
since this gets asked at the docs at python.org address a lot
- fix some minor style violations and inconsistencies
Guido van Rossum [Wed, 22 Oct 2003 17:22:18 +0000 (17:22 +0000)]
Remove unneeded import.
Raymond Hettinger [Wed, 22 Oct 2003 16:49:01 +0000 (16:49 +0000)]
Replace a reduce() with sum().
Andrew M. Kuchling [Wed, 22 Oct 2003 14:38:54 +0000 (14:38 +0000)]
Add docstring
Andrew M. Kuchling [Wed, 22 Oct 2003 14:38:27 +0000 (14:38 +0000)]
[Part of patch #648322] Delete the poll2() function, which uses a 'poll' extension module that was once part of Medusa. Contributed by Kjetil Jacobsen
Andrew M. Kuchling [Wed, 22 Oct 2003 14:12:03 +0000 (14:12 +0000)]
[Bug #809174] loads() and dumps() not documented