Gregory P. Smith
a703a21b48
* 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.
2003-11-03 01:04:41 +00:00
Raymond Hettinger
83c187460e
SF patch #834444 : add versionadd to new functions
...
(Contributed by George Yoshida.)
2003-11-02 09:50:56 +00:00
Raymond Hettinger
cc523fc53d
SF patch #834015 : Remove imports of unused modules
...
(Contributed by George Yoshida.)
2003-11-02 09:47:05 +00:00
Gregory P. Smith
dc113a8a06
* 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.
2003-11-02 09:10:16 +00:00
Gregory P. Smith
e276717113
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.
2003-11-02 08:06:29 +00:00
Raymond Hettinger
54a831bef7
Use PyTuple_Pack() to simplify enumerate().
2003-11-02 05:37:44 +00:00
Andrew M. Kuchling
b4b9ced1b6
[Bug #817178 ] Fix incorrect arguments in example, noted by Terry Reedy
2003-10-31 19:52:30 +00:00
Martin v. Löwis
2389c41a10
Patch #833710 : Set INSTSONAME on Solaris. Backported to 2.3.
2003-10-31 15:42:07 +00:00
Martin v. Löwis
893ffa4372
Patch #830858 : Correct the number of is-functions. Backported to 2.3 and 2.2.
2003-10-31 15:35:53 +00:00
Martin v. Löwis
04570dbed1
Patch #628301 : Update installer to
...
http://cesnet.dl.sourceforge.net/sourceforge/avpython/Python-2.3.2-Win32-159-Setup.iss
2003-10-31 14:02:41 +00:00
Martin v. Löwis
45394c281d
Patch #531629 : Add multicall support.
2003-10-31 13:49:36 +00:00
Martin v. Löwis
f9b08b8e60
Patch #785689 : Use basename in usage. Backported to 2.3.
2003-10-31 13:05:21 +00:00
Martin v. Löwis
be4fea6198
Patch #787189 : Explicitly define CTRL on SGI.
2003-10-31 13:01:24 +00:00
Martin v. Löwis
48440b7c27
Patch #: Add POP3 over SSL support.
2003-10-31 12:52:35 +00:00
Martin v. Löwis
9ad853bc37
Patch #788404 : ignore "b" and "t" mode modifiers in posix_popen.
...
Fixes #703198 . Backported to 2.3.
2003-10-31 10:01:53 +00:00
Raymond Hettinger
9885c93b99
Fix typo.
2003-10-30 06:08:32 +00:00
Brett Cannon
82b24827f6
Minor grammatical fix.
2003-10-30 05:42:15 +00:00
Raymond Hettinger
c40b7afee2
Update test to include "sorted" in dir(list).
2003-10-29 07:23:57 +00:00
Raymond Hettinger
0a9b9da0c3
Add list.sorted() classmethod.
2003-10-29 06:54:43 +00:00
Raymond Hettinger
c43a7e7c37
SF bug #827902 : ctime is not creation time
...
New fix for this bug recognizes differing definitions on various systems.
2003-10-29 00:46:19 +00:00
Neal Norwitz
9920430107
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.
2003-10-28 21:57:10 +00:00
Skip Montanaro
030f68a66a
note db2pickle/pickle2db tweaks
2003-10-28 16:24:00 +00:00
Skip Montanaro
48f9c6dfb8
allow dump/load of gdbm files
2003-10-28 16:17:54 +00:00
Armin Rigo
9c8f7eafca
Fixed dis.disassemble_string().
...
Added dis.findlinestarts().
SF bug 811294
2003-10-28 12:17:25 +00:00
Armin Rigo
3be6d5d320
Documented gc.get_referrers() as dangerous.
...
SF bug 793822
2003-10-28 12:10:38 +00:00
Armin Rigo
2b3eb4062c
Deleting cyclic object comparison.
...
SF patch 825639
http://mail.python.org/pipermail/python-dev/2003-October/039445.html
2003-10-28 12:05:48 +00:00
Raymond Hettinger
0e4f76405d
Fix nits in error messages.
2003-10-28 07:32:28 +00:00
Raymond Hettinger
8476c4df92
SF bug #827902 : ctime is not creation time
...
Document the correct definition of os.path.getctime()
2003-10-27 20:00:36 +00:00
Andrew M. Kuchling
0f10343410
Docstring fix: XHTML 1.0 entities are supported
2003-10-27 15:47:48 +00:00
Andrew M. Kuchling
b546be2448
Fix inaccuracy: all entities from XHTML 1.0 are supported (according to text further down in this file)
2003-10-27 15:46:16 +00:00
Martin v. Löwis
405a7952fd
Patch #803998 : Correctly check for error in SSL_write.
2003-10-27 14:24:37 +00:00
Martin v. Löwis
11892ecd6d
Patch #817854 : Add missing operations for SSLFile. Fixes #792101 .
...
Backported to 2.3.
2003-10-27 14:07:53 +00:00
Raymond Hettinger
98779e0e36
Fix Greg Ward's error message nit: PyObject_SetItem and PySequenceSetItem
...
had slightly different error messages.
2003-10-27 09:22:16 +00:00
Raymond Hettinger
9c7ed4c6df
Document that varlist can be NULL.
2003-10-26 17:20:07 +00:00
Steve Purcell
cca3491dbe
Another instance of the same typo.
2003-10-26 16:38:16 +00:00
Raymond Hettinger
d591f666de
Replace the window() example with pairwise() which demonstrates tee().
2003-10-26 15:34:50 +00:00
Raymond Hettinger
f0c5aec85f
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
2003-10-26 14:25:56 +00:00
Steve Purcell
397b45d4ba
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.
2003-10-26 10:41:03 +00:00
Alex Martelli
a253e183b8
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:24:14 +00:00
Armin Rigo
1d313ab9d1
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.
2003-10-25 14:33:09 +00:00
Armin Rigo
092381a979
Made function declaration a proper C prototype
2003-10-25 14:29:27 +00:00
Neal Norwitz
8ed69e3389
SF #829941 , update tutorial, built-in types can be base classes since 2.2
2003-10-25 14:15:54 +00:00
Alex Martelli
dd6664514f
document the performance fix to builtin_sum().
2003-10-25 13:02:57 +00:00
Alex Martelli
a2777d3a55
Changed builtin_sum to use PyNumber_InPlaceAdd (same semantics, but fixes
...
a performance bug in sum(manylists)), same as in 2.3 maintenance branch.
2003-10-25 12:49:56 +00:00
Raymond Hettinger
5cf6394b12
Use PyArg_UnpackTuple() where possible.
2003-10-25 06:41:37 +00:00
Raymond Hettinger
4514369f27
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.
2003-10-25 06:37:47 +00:00
Martin v. Löwis
23b44a39ce
Patch #812378 : Normalize white space.
2003-10-24 20:09:23 +00:00
Martin v. Löwis
f8d59d28e0
Patch #828384 : Don't discard nested exception in AddObject.
2003-10-24 20:05:32 +00:00
Andrew M. Kuchling
7883dc8abb
[Patch #772077 from Tim Rice] Fix for compiling the readline module on UnixWare; fix goofy comment indent. 2.3 bugfix candidate
2003-10-24 18:26:26 +00:00
Andrew M. Kuchling
10a444965d
[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)
2003-10-24 17:38:34 +00:00