David Goodger [Sun, 3 Oct 2004 15:40:25 +0000 (15:40 +0000)]
SF bug #
1017864: ConfigParser now correctly handles default keys, processing them with ``ConfigParser.optionxform`` when supplied, consistent with the handling of config file entries and runtime-set options.
Michael W. Hudson [Sun, 3 Oct 2004 09:41:26 +0000 (09:41 +0000)]
typo
Martin v. Löwis [Sun, 3 Oct 2004 08:51:35 +0000 (08:51 +0000)]
Print verbose messages to stderr. Fixes #
1036752.
Andrew MacIntyre [Sun, 3 Oct 2004 08:29:55 +0000 (08:29 +0000)]
remove rotor module
Andrew MacIntyre [Sun, 3 Oct 2004 08:26:36 +0000 (08:26 +0000)]
note module removals, update on BitTorrent issue
Andrew MacIntyre [Sun, 3 Oct 2004 08:11:30 +0000 (08:11 +0000)]
bring modules up to date, correct .DEF file version
Barry Warsaw [Sun, 3 Oct 2004 04:02:43 +0000 (04:02 +0000)]
Fix test for FeedParser results.
Barry Warsaw [Sun, 3 Oct 2004 03:58:01 +0000 (03:58 +0000)]
Blarg, fix the versions.
Barry Warsaw [Sun, 3 Oct 2004 03:57:37 +0000 (03:57 +0000)]
Updates for distutils package.
Barry Warsaw [Sun, 3 Oct 2004 03:39:47 +0000 (03:39 +0000)]
Add documentation about as_string() mangling From_ lines.
Barry Warsaw [Sun, 3 Oct 2004 03:38:07 +0000 (03:38 +0000)]
as_string(): Indicate that this mangles From_ lines.
Barry Warsaw [Sun, 3 Oct 2004 03:16:19 +0000 (03:16 +0000)]
Big email 3.0 API changes, with updated unit tests and documentation.
Briefly (from the NEWS file):
- Updates for the email package:
+ All deprecated APIs that in email 2.x issued warnings have been removed:
_encoder argument to the MIMEText constructor, Message.add_payload(),
Utils.dump_address_pair(), Utils.decode(), Utils.encode()
+ New deprecations: Generator.__call__(), Message.get_type(),
Message.get_main_type(), Message.get_subtype(), the 'strict' argument to
the Parser constructor. These will be removed in email 3.1.
+ Support for Python earlier than 2.3 has been removed (see PEP 291).
+ All defect classes have been renamed to end in 'Defect'.
+ Some FeedParser fixes; also a MultipartInvariantViolationDefect will be
added to messages that claim to be multipart but really aren't.
+ Updates to documentation.
Just van Rossum [Sat, 2 Oct 2004 14:06:56 +0000 (14:06 +0000)]
removed 2.2 support
Just van Rossum [Sat, 2 Oct 2004 14:06:18 +0000 (14:06 +0000)]
use new readPlist() and writePlist() functions
Armin Rigo [Sat, 2 Oct 2004 13:59:34 +0000 (13:59 +0000)]
Upon insertion, if memory runs out, the deque was left in a corrupted state.
deque_item(): a performance bug: the linked list of blocks was followed
from the left in most cases, because the test (i < (deque->len >> 1)) was
after "i %= BLOCKLEN".
deque_clear(): replaced a call to deque_len() with deque->len; not sure what
this call was here for, nor if all compilers under the sun would inline it.
deque_traverse(): I belive that it could be called by the GC when the deque
has leftblock==rightblock==NULL, because it is tracked before the first block
is allocated (though closely before). Still, a C extension module subclassing
deque could provide its own tp_alloc that could trigger a GC collection after
the PyObject_GC_Track()...
deque_richcompare(): rewrote to cleanly check for end-of-iterations instead of
relying on deque.__iter__().next() to succeed exactly len(deque) times -- an
assumption which can break if deques are subclassed. Added a test.
I wonder if the length should be explicitely bounded to INT_MAX, with
OverflowErrors, as in listobject.c. On 64-bit machines, adding more than
INT_MAX in the deque will result in trouble. (Note to anyone/me fixing
this: carefully check for overflows if len is close to INT_MAX in the
following functions: deque_rotate(), deque_item(), deque_ass_item())
Raymond Hettinger [Sat, 2 Oct 2004 11:02:59 +0000 (11:02 +0000)]
SF bug#
1038917 fix typos (Contributed by George Yoshida.)
Raymond Hettinger [Sat, 2 Oct 2004 10:56:43 +0000 (10:56 +0000)]
Replace structure member before decreffing.
Just van Rossum [Sat, 2 Oct 2004 08:40:47 +0000 (08:40 +0000)]
Which reminds me, I've had a much improved plistlib.py lying around for
ages. The main improvements are:
- a much more convenient API: readPlist() and writePlist()
- support non-dict top-level objects
Raymond Hettinger [Sat, 2 Oct 2004 00:43:13 +0000 (00:43 +0000)]
* Bulletproof the method for detecting mutations during iteration.
The previous approach was too easily fooled (a rotate() sufficed).
* Use it->counter to determine when iteration is complete. The
previous approach was too complex.
* Strengthen an assertion and add a comment here or there.
Raymond Hettinger [Fri, 1 Oct 2004 15:25:53 +0000 (15:25 +0000)]
Restore the block length and add a comment.
Raymond Hettinger [Fri, 1 Oct 2004 15:14:39 +0000 (15:14 +0000)]
Clarify the relationship between indices.
Raymond Hettinger [Fri, 1 Oct 2004 06:24:12 +0000 (06:24 +0000)]
* Elaborate on the invariant comments and make them more precise.
* Change the centering by one to make it possible to test the module
with BLOCKLEN's as low as two. Testing small blocks makes end-point
errors surface more readily.
Tim Peters [Fri, 1 Oct 2004 02:13:16 +0000 (02:13 +0000)]
Noted the fix to deque gc.
Tim Peters [Fri, 1 Oct 2004 02:01:04 +0000 (02:01 +0000)]
deque_traverse(): If the deque had one block, and its rightindex was
BLOCKLEN-1, this assert-failed in a debug build, or went wild with a
NULL pointer in a release build. Reported on c.l.py by Stefan Behnel.
Tim Peters [Fri, 1 Oct 2004 01:35:54 +0000 (01:35 +0000)]
Typos in new comments.
Tim Peters [Fri, 1 Oct 2004 01:32:53 +0000 (01:32 +0000)]
Document some reverse-engineered invariants and pragmatic hints.
Greg Ward [Fri, 1 Oct 2004 01:16:39 +0000 (01:16 +0000)]
Get references working (except for references to "Extending optparse",
which isn't being converted from reST yet).
Tim Peters [Fri, 1 Oct 2004 01:04:50 +0000 (01:04 +0000)]
Definition consistency.
Tim Peters [Fri, 1 Oct 2004 01:03:29 +0000 (01:03 +0000)]
Trimmed trailing whitespace.
Raymond Hettinger [Thu, 30 Sep 2004 22:29:03 +0000 (22:29 +0000)]
Add tests for syntax errors.
Edward Loper [Thu, 30 Sep 2004 17:18:18 +0000 (17:18 +0000)]
Added 2 notes about the complexities of testing SyntaxErrors.
Raymond Hettinger [Thu, 30 Sep 2004 15:07:29 +0000 (15:07 +0000)]
Expand scope to include general mapping protocol tests.
Many of these tests are redundant, but this will ensure
that the mapping protocols all stay in sync.
Also, added a test for dictionary subclasses.
Walter Dörwald [Thu, 30 Sep 2004 13:46:00 +0000 (13:46 +0000)]
Add missing test_dict.py from patch #736962.
Raymond Hettinger [Thu, 30 Sep 2004 07:47:20 +0000 (07:47 +0000)]
Improve test coverage.
Raymond Hettinger [Thu, 30 Sep 2004 00:59:08 +0000 (00:59 +0000)]
SF bug #
1035279: hex() and oct() documentation is incorrect
* Updated docs to reflected signed return values.
* Fixed a doubled word typo.
Raymond Hettinger [Wed, 29 Sep 2004 23:54:08 +0000 (23:54 +0000)]
Improve error message for augmented assignments to genexps or listcomps.
Rather than introduce new logic, took the approach of making the message
itself more general.
Raymond Hettinger [Wed, 29 Sep 2004 21:47:10 +0000 (21:47 +0000)]
Fix two erroneous error messages.
Nicholas Bastin [Wed, 29 Sep 2004 21:39:26 +0000 (21:39 +0000)]
Fix typo in PyDict_Items doc
Raymond Hettinger [Wed, 29 Sep 2004 11:40:50 +0000 (11:40 +0000)]
Improve test coverage.
Raymond Hettinger [Wed, 29 Sep 2004 08:03:17 +0000 (08:03 +0000)]
Improve test coverage.
Skip Montanaro [Tue, 28 Sep 2004 18:40:42 +0000 (18:40 +0000)]
minor doc tweaks for writexml
Skip Montanaro [Tue, 28 Sep 2004 18:30:03 +0000 (18:30 +0000)]
typo
Raymond Hettinger [Tue, 28 Sep 2004 17:22:12 +0000 (17:22 +0000)]
Replaced a test with an assertion.
(Suggested by Michael Hudson.)
Tim Peters [Tue, 28 Sep 2004 16:12:50 +0000 (16:12 +0000)]
A number of list examples used 66.6, but I doubt there's any box on which
repr(66.6) == "66.6", so doubt that the claimed output has ever been seen.
Changed it to 66.25 everywhere, and manually verified that the new claimed
output is correct.
Edward Loper [Tue, 28 Sep 2004 05:50:57 +0000 (05:50 +0000)]
Reverted the addition of a NORMALIZE_NUMBERS option, per Tim Peter's
request. Tim says that "correct 'fuzzy' comparison of floats cannot
be automated." (The motivation behind adding the new option
was verifying interactive examples in Python's latex documentation;
several such examples use numbers that don't print consistently on
different platforms.)
Raymond Hettinger [Tue, 28 Sep 2004 04:45:28 +0000 (04:45 +0000)]
* Increase test coverage.
* Have groupby() be careful about decreffing structure members.
Edward Loper [Tue, 28 Sep 2004 04:29:57 +0000 (04:29 +0000)]
Added a new NORMALIZE_NUMBERS option, which causes number literals in
the expected output to match corresponding number literals in the
actual output if their values are equal (to ten digits of precision).
Brett Cannon [Tue, 28 Sep 2004 04:08:11 +0000 (04:08 +0000)]
Add note about inclusion of DarwinPorts directories in setup.py on darwin.
Brett Cannon [Tue, 28 Sep 2004 03:49:52 +0000 (03:49 +0000)]
Add the directories where DarwinPorts installs library and include files to
the proper path directories for compiling extension modules.
Edward Loper [Tue, 28 Sep 2004 03:12:01 +0000 (03:12 +0000)]
Fixed minor typo in interactive example (extra '.'s in '...' prompts)
Edward Loper [Tue, 28 Sep 2004 03:08:57 +0000 (03:08 +0000)]
Fixed minor typo in interactive example (extra blank line)
Raymond Hettinger [Tue, 28 Sep 2004 03:04:23 +0000 (03:04 +0000)]
SF bug #
1033038: Misleading error message in random.choice
Added a clarifying line to the docs.
Edward Loper [Tue, 28 Sep 2004 02:56:45 +0000 (02:56 +0000)]
Fixed minor typo in interactive example
Edward Loper [Tue, 28 Sep 2004 02:54:54 +0000 (02:54 +0000)]
Fixed minor typo in interactive example (backslash shouldn't be doubled)
Edward Loper [Tue, 28 Sep 2004 02:53:50 +0000 (02:53 +0000)]
Updated interactive examples in the "Examples" session to reflect the
fact that compiler.ast.Function now takes a "decorators" argument.
Raymond Hettinger [Tue, 28 Sep 2004 02:19:40 +0000 (02:19 +0000)]
Silence a compiler warning by supplying the correct argument type to
the htons() function.
Raymond Hettinger [Tue, 28 Sep 2004 01:51:35 +0000 (01:51 +0000)]
Use Py_CLEAR(). Add unrelated test.
Greg Ward [Tue, 28 Sep 2004 01:30:23 +0000 (01:30 +0000)]
Major overhaul to reflect Optik 1.5. Section references currently broken.
Raymond Hettinger [Tue, 28 Sep 2004 00:03:54 +0000 (00:03 +0000)]
Plug a leak and beef-up test coverage.
Raymond Hettinger [Mon, 27 Sep 2004 23:11:35 +0000 (23:11 +0000)]
Rename test for comparision errors.
Raymond Hettinger [Mon, 27 Sep 2004 22:48:40 +0000 (22:48 +0000)]
Beef-up tests for greater coverage and refcount checking.
Armin Rigo [Mon, 27 Sep 2004 19:54:33 +0000 (19:54 +0000)]
Patch #
1009075, bug #952953: allow execve with empty 2nd argument
Armin Rigo [Mon, 27 Sep 2004 19:27:51 +0000 (19:27 +0000)]
Patch #
1011240: SystemError generated by struct.pack('P', 'foo').
Armin Rigo [Mon, 27 Sep 2004 17:49:00 +0000 (17:49 +0000)]
Trivial bug fix: deque == [] is not a good way to check if a deque is empty.
Raymond Hettinger [Mon, 27 Sep 2004 15:29:05 +0000 (15:29 +0000)]
Use floor division operator.
Raymond Hettinger [Mon, 27 Sep 2004 14:23:40 +0000 (14:23 +0000)]
Use floor division operator.
Edward Loper [Mon, 27 Sep 2004 04:08:20 +0000 (04:08 +0000)]
- Added a "parser" option to testfile() and DocFileTest().
Edward Loper [Mon, 27 Sep 2004 03:42:58 +0000 (03:42 +0000)]
- Added a "parser" option to testfile() and DocFileTest().
Edward Loper [Mon, 27 Sep 2004 03:30:44 +0000 (03:30 +0000)]
- Fixed typo in multi-line exception example
- Fixed indentation for a verbatim block
Tim Peters [Sun, 26 Sep 2004 21:51:25 +0000 (21:51 +0000)]
Give a saner example for script_from_examples(); also mention an intended
but not entirely obvious use case.
Tim Peters [Sun, 26 Sep 2004 21:05:03 +0000 (21:05 +0000)]
Made most module references "clickable".
Tim Peters [Sun, 26 Sep 2004 20:45:04 +0000 (20:45 +0000)]
Docs for run_docstring_examples().
Raymond Hettinger [Sun, 26 Sep 2004 19:24:20 +0000 (19:24 +0000)]
Checkin Tim's fix to an error discussed on python-dev.
Also, add a testcase.
Formerly, the list_extend() code used several local variables to remember
its state across iterations. Since an iteration could call arbitrary
Python code, it was possible for the list state to be changed. The new
code uses dynamic structure references instead of C locals. So, they
are always up-to-date.
After list_resize() is called, its size has been updated but the new
cells are filled with NULLs. These needed to be filled before arbitrary
iteration code was called; otherwise, that code could attempt to modify
a list that was in a semi-invalid state. The solution was to change
the ob->size field back to a value reflecting the actual number of valid
cells.
Raymond Hettinger [Sun, 26 Sep 2004 18:56:44 +0000 (18:56 +0000)]
Make the regex pattern easier to read, understand, and modify
by factoring out the common prefix (the delimiter).
Martin v. Löwis [Sun, 26 Sep 2004 17:26:55 +0000 (17:26 +0000)]
Replace -soname with -h for Solaris compatibility. Fixes #
1034496.
Backported to 2.3.
Tim Peters [Sun, 26 Sep 2004 05:13:18 +0000 (05:13 +0000)]
Updated doctest doc news.
Tim Peters [Sun, 26 Sep 2004 05:09:59 +0000 (05:09 +0000)]
Added a lot of new stuff to the debugging section.
Tim Peters [Sun, 26 Sep 2004 03:50:06 +0000 (03:50 +0000)]
Removed debug_script from the public API: no docs, not public. I'm in
the process of writing docs for the other "missing" debug support
functions.
Tim Peters [Sun, 26 Sep 2004 02:38:41 +0000 (02:38 +0000)]
register_optionflag(): Moved from the Debugging section to the section
on option flags; added a versionadded decoration.
Tim Peters [Sun, 26 Sep 2004 02:12:40 +0000 (02:12 +0000)]
Document set_unittest_reportflags().
Tim Peters [Sun, 26 Sep 2004 01:50:24 +0000 (01:50 +0000)]
Add set_unittest_reportflags() to the public API. Docs will follow
"soon", after I repair the LaTeX I somehow damaged.
Tim Peters [Sun, 26 Sep 2004 01:24:23 +0000 (01:24 +0000)]
Removed two undocumented unittest support classes, and one undocumented
unittest support function, from the public interface. If they're not
documented, they shouldn't be public.
Raymond Hettinger [Sat, 25 Sep 2004 08:09:23 +0000 (08:09 +0000)]
Fix double word error.
Tim Peters [Sat, 25 Sep 2004 03:50:35 +0000 (03:50 +0000)]
Assorted minor changes, plus a lot more soap.
Tim Peters [Sat, 25 Sep 2004 03:02:23 +0000 (03:02 +0000)]
Explain the motivation for the unittest functions, and beef up the
example. Squash repeated argument descriptions. Minor rewordings.
Tim Peters [Sat, 25 Sep 2004 02:41:28 +0000 (02:41 +0000)]
Removed most of the module docstring. There's too much to explain now,
and the LaTeX docs are in increasingly good shape.
Tim Peters [Sat, 25 Sep 2004 01:51:49 +0000 (01:51 +0000)]
Repaired mistakes in the descriptions of testmod()/testfile(), and
squashed massive duplication of common argument descriptions.
Brett Cannon [Sat, 25 Sep 2004 01:39:56 +0000 (01:39 +0000)]
Add warning notation about using 'bomb' setting.
Brett Cannon [Sat, 25 Sep 2004 01:37:24 +0000 (01:37 +0000)]
Remove 'extern' declaration for _Py_SwappedOp.
Tim Peters [Sat, 25 Sep 2004 01:30:16 +0000 (01:30 +0000)]
Since the doctest warnings section was reduced to one bullet point,
get rid of the itemize structure.
Tim Peters [Sat, 25 Sep 2004 01:22:29 +0000 (01:22 +0000)]
In the "doctest warnings" section, removed obsolete info, and noted that
ELLIPSIS can be used to deal with examples that embed object addresses.
Johannes Gijsbers [Sat, 25 Sep 2004 00:55:38 +0000 (00:55 +0000)]
Raymond observed that sometimes it's better not to link modules, so I reverted
part of my previous last changes.
Tim Peters [Sat, 25 Sep 2004 00:49:53 +0000 (00:49 +0000)]
Beef up the section on testfile(), giving a complete example in
reStructuredText format. Remove words describing the return value of
testmod() and testfile() in the intro sections, since it's never
useful in such simple cases.
Tim Peters [Sat, 25 Sep 2004 00:11:43 +0000 (00:11 +0000)]
Typo.
Tim Peters [Sat, 25 Sep 2004 00:10:53 +0000 (00:10 +0000)]
Since the LaTeX isn't doctest'ed, examples are always wrong <wink>.
Johannes Gijsbers [Fri, 24 Sep 2004 23:25:25 +0000 (23:25 +0000)]
- Use itemize instead of plain-text '*' for marking up a list.
- Add more ulink's to modules (this should probably become a standard macro).
Tim Peters [Fri, 24 Sep 2004 23:16:41 +0000 (23:16 +0000)]
Whitespace normalization.
Johannes Gijsbers [Fri, 24 Sep 2004 21:36:52 +0000 (21:36 +0000)]
Port test_unpack to doctest (patch #736962).
Neil Schemenauer [Fri, 24 Sep 2004 19:18:42 +0000 (19:18 +0000)]
Add yet more tests for buffer().
Neil Schemenauer [Fri, 24 Sep 2004 19:17:26 +0000 (19:17 +0000)]
Ensure negative offsets cannot be passed to buffer(). When composing
buffers, compute the new buffer size based on the old buffer size.
Fixes SF bug #
1034242.