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
Jeremy Hylton
174d276d8c
Fix indentation.
2003-10-21 18:10:28 +00:00
Jeremy Hylton
fcefd0d2a5
Apply patch 823328 -- support for rfc 2617 digestion authentication.
...
The patch was tweaked slightly. It's get a different mechanism for
generating the cnonce which uses /dev/urandom when possible to
generate less-easily-guessed random input.
Also rearrange the imports so that they are alphabetical and
duplicates are eliminated.
Add a few XXX comments about things left undone and things that could
be improved.
2003-10-21 18:07:07 +00:00
Fred Drake
4e21dc9efd
- make this section format
...
- start cleaning up the markup for consistency
- comment out the reference to a MS KnowledgeBase article that doesn't
seem to be present at msdn.microsoft.com; hopefully someone can
point out an alternate source for the relevant information
2003-10-21 17:58:55 +00:00
Fred Drake
5e75f15008
add missing dependency
2003-10-21 17:25:05 +00:00
Fred Drake
5b6150e066
markup fixes; this would not format
2003-10-21 17:04:21 +00:00
Fred Drake
86c60ed198
ConfigParser.items() and SafeConfigParser.items() no longer return a
...
generator. See SF bug #818861 .
2003-10-21 16:50:55 +00:00
Fred Drake
8c4da53afe
Make both items() methods return lists; one had changed to return an
...
iterator where it probably shouldn't have.
Closes SF bug #818861 .
2003-10-21 16:45:00 +00:00
Fred Drake
de05032cc9
Note the update to Expat 1.95.7.
2003-10-21 15:41:59 +00:00
Fred Drake
2d59a49212
Provide a bit more information to the compiler when building Expat.
...
This avoids having to modify the Expat sources in any way starting
with Expat 1.95.7.
2003-10-21 15:41:15 +00:00
Fred Drake
08317aefef
Update to Expat 1.95.7; there are no changes to the Expat sources.
2003-10-21 15:38:55 +00:00
Andrew M. Kuchling
6aedcfcd1e
Add some more items
2003-10-21 12:48:23 +00:00
Andrew M. Kuchling
2fb4d51976
Document list.sort() changes
2003-10-21 12:31:16 +00:00
Guido van Rossum
571720811b
Show microseconds, milliseconds or seconds, whichever is most natural,
...
rather than showing weird numbers like 8.4e+03 usec.
2003-10-20 23:38:28 +00:00
Guido van Rossum
0c9a318d64
Use 'predicate = bool' as the default predicate for ifilter[false].
2003-10-20 17:01:07 +00:00
Walter Dörwald
f0dfc7ac5c
Fix a bunch of typos in documentation, docstrings and comments.
...
(From SF patch #810751 )
2003-10-20 14:01:56 +00:00
Brett Cannon
4b17e3993b
Modify the Py_RETURN_* macros to be of the form ``do {...} while (0)`` in order
...
to handle situations like ``if (foo) Py_RETURN_NONE else ...``.
2003-10-19 22:58:11 +00:00
Brett Cannon
26b3a7b82c
Modified the Py_RETURN_* macros by having the statements surrounded by {} in
...
order to prevent any unexpected surprises from someone using them in a
conditional without using curly braces (e.g., ``if (foo) Py_RETURN_TRUE``.
2003-10-19 21:31:43 +00:00
Brett Cannon
d05235ec49
Defined macros Py_RETURN_(TRUE|FALSE|NONE) as helper functions for returning
...
the specified value. All three Py_INCREF the singleton and then return it.
2003-10-19 21:19:40 +00:00
Martin v. Löwis
52da4496cd
Patch #823259 : Update spec file:
...
- skip building HTML documentation if it is not available.
- Removal of patches, which can't be referenced from a build
directly from the tar-file.
- Using the RPM tmp directory macro for the buildroot location.
- Ensuring that the clean directive doesn't accidentally
delete the users root directory or another directory.
- --enable-unicode=ucs4 in configure line.
Backported to 2.3.
2003-10-19 18:34:52 +00:00
Martin v. Löwis
01a74b2fa1
Make CObjects mutable. Fixes #477441 .
2003-10-19 18:30:01 +00:00
Martin v. Löwis
95cf84a4f3
Patch #821093 : Fix various typos.
2003-10-19 07:32:24 +00:00
Martin v. Löwis
dd7eb146a8
Patch #792869 : Clarify error message for parameters declared global,
...
rename LOCAL_GLOBAL to PARAM_GLOBAL.
2003-10-18 22:05:25 +00:00
Gustavo Niemeyer
0f0c06a5c2
Removing dead code.
2003-10-18 20:54:44 +00:00
Gustavo Niemeyer
d969775d9c
Fixed \versionadded for the (?(id/name)yes|no) expression support.
2003-10-18 15:28:22 +00:00
Martin v. Löwis
9e62ff287b
Patch #822994 : Consolidate tests for self.closed.
2003-10-18 10:20:42 +00:00
Martin v. Löwis
6828e18a6a
Patch #825679 : Clarify semantics of .isfoo on empty strings.
...
Backported to 2.3.
2003-10-18 09:55:08 +00:00
Martin v. Löwis
849a972f35
Patch #809535 : Mention behaviour of seek on text files. Backported to 2.3.
2003-10-18 09:38:01 +00:00
Gustavo Niemeyer
ad3fc44ccb
Implemented non-recursive SRE matching.
2003-10-17 22:13:16 +00:00
Thomas Heller
41e2809feb
Typo found by Lokasz Pankowski:
...
dir_created -> directory_created
2003-10-16 19:40:48 +00:00
Raymond Hettinger
ae4a299a0d
Fix typo found by Neal Norwitz.
2003-10-16 17:16:30 +00:00
Raymond Hettinger
6b59f5f3fd
Let library modules use the new keyword arguments for list.sort().
2003-10-16 05:53:16 +00:00
Raymond Hettinger
42b1ba31af
* list.sort() now supports three keyword arguments: cmp, key, and reverse.
...
key provides C support for the decorate-sort-undecorate pattern.
reverse provide a stable sort of the list with the comparisions reversed.
* Amended the docs to guarantee sort stability.
2003-10-16 03:41:09 +00:00
Brett Cannon
90f7d254a9
Added Bjorn Pettersen for initial conversion of Lib/platform.py's docstring to LaTeX.
2003-10-14 21:47:28 +00:00
Brett Cannon
4fc3855fb2
Initial checkin of docs for Lib/platform.py .
...
Closes patch #785752 and bug #726911 .
Should be backported after correctness and such has been verified by Fred.
2003-10-14 21:45:59 +00:00