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.)
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
[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.
Jeremy Hylton [Tue, 21 Oct 2003 18:07:07 +0000 (18:07 +0000)]
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.
Fred Drake [Tue, 21 Oct 2003 17:58:55 +0000 (17:58 +0000)]
- 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
Fred Drake [Tue, 21 Oct 2003 15:41:15 +0000 (15:41 +0000)]
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.
Brett Cannon [Sun, 19 Oct 2003 21:31:43 +0000 (21:31 +0000)]
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``.
Brett Cannon [Sun, 19 Oct 2003 21:19:40 +0000 (21:19 +0000)]
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.
Martin v. Löwis [Sun, 19 Oct 2003 18:34:52 +0000 (18:34 +0000)]
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.
* 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.
Jeremy Hylton [Tue, 14 Oct 2003 20:12:06 +0000 (20:12 +0000)]
Open results files, which contain binary pickles, in binary mode.
Remove fallback code that tries to read marshal data from a results
file, since this module never writes marshal data.
Extended tuple's C API to include a new function, PyTuple_Pack() that is
useful for rapidly building argument tuples without having to invoke the
more sophisticated machinery of Py_BuildValue().
* Added C coded getrandbits(k) method that runs in linear time.
* Call the new method from randrange() for ranges >= 2**53.
* Adds a warning for generators not defining getrandbits() whenever they
have a call to randrange() with too large of a population.
Anthony Baxter [Sat, 4 Oct 2003 07:46:23 +0000 (07:46 +0000)]
FreeBSD 4.8 and MacOS X 10.2 have a broken ncurses.h - if you don't
define _XOPEN_EXTENDED_SOURCE, the bug isn't triggered. Testing on
FreeBSD shows that nothing is broken by this change.
Barry Warsaw [Sat, 4 Oct 2003 02:28:31 +0000 (02:28 +0000)]
GNUTranslations._parse(): Initialize local variable k so that if the
first line of a header section isn't an RFC-ish header, it's just
ignored instead of throwing an UnboundLocalError.
Fred Drake [Fri, 3 Oct 2003 15:21:38 +0000 (15:21 +0000)]
- don't re-write a SourceForge authenticated CVS root into the
anonymous flavor unless the user asks for it on the command line
- decompose SourceForge authenticated CVS roots correctly
Skip Montanaro [Fri, 3 Oct 2003 14:03:01 +0000 (14:03 +0000)]
Make the fieldnames argument optional in the DictReader. If self.fieldnames
is None, the next row read is used as the fieldnames. In the common case,
this means the programmer doesn't need to know the fieldnames ahead of time.
The first row of the file will be used. In the uncommon case, this means
the programmer can set the reader's fieldnames attribute to None at any time
and have the next row read as the next set of fieldnames, so a csv file can
contain several "sections", each with different fieldnames.