Raymond Hettinger
dc62aeca4c
Add a new looping idiom
2003-11-07 01:30:58 +00:00
Martin v. Löwis
5ce2fecf8e
Patch #837322 : Clarify owning, borrowing, stealing. Backported to 2.3.
2003-11-06 21:08:11 +00:00
Martin v. Löwis
d2171d2ba4
Overallocate target buffer for normalization more early. Fixes #834676 .
...
Backported to 2.3.
2003-11-06 20:47:57 +00:00
Raymond Hettinger
85c20a41df
Implement and apply PEP 322, reverse iteration
2003-11-06 14:06:48 +00:00
Neil Schemenauer
f607fc5395
Add traceback.format_exc().
2003-11-05 23:03:00 +00:00
Jeremy Hylton
904ed86a77
Make undetected error on stack unwind a fatal error.
2003-11-05 17:29:35 +00:00
Anthony Baxter
92bee36045
missing news entry
2003-11-04 14:35:49 +00:00
Gregory P. Smith
7441e65821
* SF patch 835100 - C++ // comments are not allowed. Use /* */
2003-11-03 21:35:31 +00:00
Jeremy Hylton
ceac90aecb
Fix compiler warning about possible use of n without assignment.
...
Also fix use of n for two different variables in two different blocks.
2003-11-03 20:58:28 +00:00
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