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
Armin Rigo
1b3c04b510
Fixed bug introduced in revision 1.27
2003-10-24 17:15:29 +00:00
Walter Dörwald
4894c30626
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 .
2003-10-24 14:25:28 +00:00
Raymond Hettinger
6a5b027742
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.
2003-10-24 08:45:23 +00:00
Guido van Rossum
16b9fa8db3
- 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.)
2003-10-23 23:54:57 +00:00
Andrew M. Kuchling
50a25709f2
Record an item I missed and bump the version number. [2.3 bugfix candidate.]
2003-10-23 18:08:03 +00:00
Martin v. Löwis
d4210bc718
Patch #813200 : Quote executable path on Windows. Fixes #811082 .
...
Backported to 2.3.
2003-10-23 15:55:28 +00:00
Fred Drake
ee950ff393
- 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
2003-10-23 14:33:46 +00:00
Guido van Rossum
38443c1513
Remove unneeded import.
2003-10-22 17:22:18 +00:00
Raymond Hettinger
97aa32b467
Replace a reduce() with sum().
2003-10-22 16:49:01 +00:00
Andrew M. Kuchling
7cebbf39a9
Add docstring
2003-10-22 14:38:54 +00:00
Andrew M. Kuchling
6c2871e707
[Part of patch #648322 ] Delete the poll2() function, which uses a 'poll' extension module that was once part of Medusa. Contributed by Kjetil Jacobsen
2003-10-22 14:38:27 +00:00
Andrew M. Kuchling
38afcef3f5
[Bug #809174 ] loads() and dumps() not documented
2003-10-22 14:12:03 +00:00
Andrew M. Kuchling
f9ca409292
[Bug #758241 ] When you use asyncore with a non-default map, methods
...
of the dispatcher object break. e.g. if you close() the object, it
tries to remove itself from the default map, not from the map the
dispatcher was created with.
The patch, from Stephane Ninin, records the map as an attribute of
the dispatcher instance.
2.3 bugfix candidate.
2003-10-22 13:48:27 +00:00
Fred Drake
d22bb6584d
Avoid confusing name for the 3rd argument to str.replace().
...
This closes SF bug #827260 .
2003-10-22 02:56:40 +00:00
Raymond Hettinger
f12f32421f
Don't make promises about about the visibility of the induction variable.
2003-10-21 18:42:21 +00:00
Jeremy Hylton
e4b9d8c2ba
Removing bogus Py_DECREF() reported by Armin Rigo (SF bug 812353).
...
Even if a new dict is generated for locals, it is stored in
f->f_locals.
2003-10-21 18:14:20 +00:00