]> granicus.if.org Git - python/log
python
20 years agoRemove rotor, xreadlines modules
Andrew M. Kuchling [Tue, 31 Aug 2004 13:52:27 +0000 (13:52 +0000)]
Remove rotor, xreadlines modules

20 years agoAdd news item.
Andrew M. Kuchling [Tue, 31 Aug 2004 13:50:43 +0000 (13:50 +0000)]
Add news item.

20 years agoRemove mpz, rotor, xreadlines modules
Andrew M. Kuchling [Tue, 31 Aug 2004 13:50:12 +0000 (13:50 +0000)]
Remove mpz, rotor, xreadlines modules

20 years agoRemove rotor reference
Andrew M. Kuchling [Tue, 31 Aug 2004 13:49:36 +0000 (13:49 +0000)]
Remove rotor reference

20 years agoMissed some occurrences of test_mpz
Andrew M. Kuchling [Tue, 31 Aug 2004 13:45:22 +0000 (13:45 +0000)]
Missed some occurrences of test_mpz

20 years agoRemove mpz, rotor
Andrew M. Kuchling [Tue, 31 Aug 2004 13:43:19 +0000 (13:43 +0000)]
Remove mpz, rotor

20 years agoRemove mpzpi demo
Andrew M. Kuchling [Tue, 31 Aug 2004 13:42:11 +0000 (13:42 +0000)]
Remove mpzpi demo

20 years agoRemove test output for rotor, xreadline
Andrew M. Kuchling [Tue, 31 Aug 2004 13:41:04 +0000 (13:41 +0000)]
Remove test output for rotor, xreadline

20 years agoRemove mpz, rotor, xreadlines modules
Andrew M. Kuchling [Tue, 31 Aug 2004 13:37:25 +0000 (13:37 +0000)]
Remove mpz, rotor, xreadlines modules

20 years agoRemove rotor, xreadlines modules
Andrew M. Kuchling [Tue, 31 Aug 2004 13:31:42 +0000 (13:31 +0000)]
Remove rotor, xreadlines modules

20 years agoRemove test for mpz
Andrew M. Kuchling [Tue, 31 Aug 2004 13:29:28 +0000 (13:29 +0000)]
Remove test for mpz

20 years agoRemove tests for mpz, rotor, xreadlines
Andrew M. Kuchling [Tue, 31 Aug 2004 13:29:03 +0000 (13:29 +0000)]
Remove tests for mpz, rotor, xreadlines

20 years agoRemove rotor license
Andrew M. Kuchling [Tue, 31 Aug 2004 13:24:08 +0000 (13:24 +0000)]
Remove rotor license

20 years agoRemove docs for xreadlines, mpz, rotor
Andrew M. Kuchling [Tue, 31 Aug 2004 13:22:43 +0000 (13:22 +0000)]
Remove docs for xreadlines, mpz, rotor

20 years agoRemove xreadlines reference
Andrew M. Kuchling [Tue, 31 Aug 2004 13:21:07 +0000 (13:21 +0000)]
Remove xreadlines reference

20 years agoRemove TERMIOS module
Andrew M. Kuchling [Tue, 31 Aug 2004 13:06:16 +0000 (13:06 +0000)]
Remove TERMIOS module

20 years agoRemove TERMIOS docs
Andrew M. Kuchling [Tue, 31 Aug 2004 13:05:59 +0000 (13:05 +0000)]
Remove TERMIOS docs

20 years agoUse correct constant; remove reference to TERMIOS.py
Andrew M. Kuchling [Tue, 31 Aug 2004 13:05:36 +0000 (13:05 +0000)]
Use correct constant; remove reference to TERMIOS.py

20 years agoChange from Raymond: use pos/neg instead of +/- 1; minor edits
Andrew M. Kuchling [Tue, 31 Aug 2004 12:21:44 +0000 (12:21 +0000)]
Change from Raymond: use pos/neg instead of +/- 1; minor edits

20 years agoDescribe non-recursive re
Andrew M. Kuchling [Tue, 31 Aug 2004 12:07:43 +0000 (12:07 +0000)]
Describe non-recursive re

20 years agoAdd bug/patch counts
Andrew M. Kuchling [Tue, 31 Aug 2004 11:54:22 +0000 (11:54 +0000)]
Add bug/patch counts

20 years agoUse multi-line import
Andrew M. Kuchling [Tue, 31 Aug 2004 11:38:12 +0000 (11:38 +0000)]
Use multi-line import

20 years agoUpdate versions and dates; add PEP 328
Andrew M. Kuchling [Tue, 31 Aug 2004 11:26:23 +0000 (11:26 +0000)]
Update versions and dates; add PEP 328

20 years agoUpdated doc for getLogger()
Vinay Sajip [Tue, 31 Aug 2004 10:21:51 +0000 (10:21 +0000)]
Updated doc for getLogger()

20 years agoSF patch #1007189, multi-line imports, for instance:
Anthony Baxter [Tue, 31 Aug 2004 10:07:13 +0000 (10:07 +0000)]
SF patch #1007189, multi-line imports, for instance:
"from blah import (foo, bar
baz, bongo)"

20 years agoonward and upward
Anthony Baxter [Tue, 31 Aug 2004 09:53:05 +0000 (09:53 +0000)]
onward and upward

20 years agoAdd patch for Tix 8.1.4.
Martin v. Löwis [Tue, 31 Aug 2004 06:43:28 +0000 (06:43 +0000)]
Add patch for Tix 8.1.4.

20 years agoHardwareRandom: Go back to multiplying by 2**-BPF instead of using
Tim Peters [Tue, 31 Aug 2004 02:19:55 +0000 (02:19 +0000)]
HardwareRandom:  Go back to multiplying by 2**-BPF instead of using
ldexp.  Both methods are exact, and return the same results.  Turns out
multiplication is a few (but just a few) percent faster on my box.
They're both significantly faster than using struct with a Q format
to convert bytes to a 64-bit long (struct.unpack() appears to lose due
to the tuple creation/teardown overhead), and calling _hexlify is
significantly faster than doing bytes.encode('hex').  So we appear to
have hit a local minimum (wrt speed) here.

20 years agoTake advantage of the math library's ldexp for assembling a float by
Raymond Hettinger [Tue, 31 Aug 2004 01:05:15 +0000 (01:05 +0000)]
Take advantage of the math library's ldexp for assembling a float by
components without division and without roundoff error for properly
sized mantissas (i.e. on systems with 53 or more mantissa bits per
float).  Eliminates the previous implementation's rounding bias as
aptly demonstrated by Tim Peters.

20 years agoChanged Karatsuba cutoff to match current reality.
Tim Peters [Mon, 30 Aug 2004 23:18:23 +0000 (23:18 +0000)]
Changed Karatsuba cutoff to match current reality.

20 years agoMore cmd.exe exploitation.
Tim Peters [Mon, 30 Aug 2004 22:13:22 +0000 (22:13 +0000)]
More cmd.exe exploitation.

20 years agoSince it's impossible to build Python using VC7.1 on a command.com
Tim Peters [Mon, 30 Aug 2004 21:27:55 +0000 (21:27 +0000)]
Since it's impossible to build Python using VC7.1 on a command.com
system, exploit cmd.exe's setlocal function in this directory.

20 years agoUpdated test-runner .bat for new location of Tcl/Tk.
Tim Peters [Mon, 30 Aug 2004 21:14:51 +0000 (21:14 +0000)]
Updated test-runner .bat for new location of Tcl/Tk.

Replaced outcomes from native Tcl/Tk tests.  Maybe the diffs are legit,
maybe not.  I noticed that the Tcl results I'm replacing here claimed
both that there were no failures, and that one file had tests with
failures, so I wasn't inclined to trust them <wink>.

20 years agowin32_urandom(): There's no need to copy the generated byte string, so
Tim Peters [Mon, 30 Aug 2004 17:36:46 +0000 (17:36 +0000)]
win32_urandom():  There's no need to copy the generated byte string, so
don't.

20 years agowin32_urandom(): pass the function name to PyArg_ParseTuple, for better
Tim Peters [Mon, 30 Aug 2004 17:10:53 +0000 (17:10 +0000)]
win32_urandom():  pass the function name to PyArg_ParseTuple, for better
error msgs.

20 years agowin32_urandom(): Raise ValueError if the argument is negative.
Tim Peters [Mon, 30 Aug 2004 17:08:02 +0000 (17:08 +0000)]
win32_urandom():  Raise ValueError if the argument is negative.

20 years agowin32_urandom(): Rewrite to Python C standards (hard tabs, function name
Tim Peters [Mon, 30 Aug 2004 17:02:04 +0000 (17:02 +0000)]
win32_urandom():  Rewrite to Python C standards (hard tabs, function name
in first column, no parens around return value).

20 years agoThe distinction between comparison flags and reporting flags isn't unique
Tim Peters [Mon, 30 Aug 2004 16:19:24 +0000 (16:19 +0000)]
The distinction between comparison flags and reporting flags isn't unique
to unittest, so make it official:  new module constants COMPARISON_FLAGS
and REPORTING_FLAGS, which are bitmasks or'ing together the relevant
individual option flags.

set_unittest_reportflags():  Reworked to use REPORTING_FLAGS, and
simplified overly complicated flag logic.

class FakeModule:  Removed this; neither documented nor used.

20 years agoFix build error: \filename{/dev/urandom} -> \file{/dev/urandom}.
Johannes Gijsbers [Mon, 30 Aug 2004 15:03:23 +0000 (15:03 +0000)]
Fix build error: \filename{/dev/urandom} -> \file{/dev/urandom}.

20 years agoBug #1014775: update NEWS.help for changes in docutils.
Johannes Gijsbers [Mon, 30 Aug 2004 14:33:25 +0000 (14:33 +0000)]
Bug #1014775: update NEWS.help for changes in docutils.

20 years agoBug #1014770: apply some rest-foo and fix some docutils errors.
Johannes Gijsbers [Mon, 30 Aug 2004 14:27:11 +0000 (14:27 +0000)]
Bug #1014770: apply some rest-foo and fix some docutils errors.

20 years agoPatch #934356: if a module defines __all__, believe that rather than using
Johannes Gijsbers [Mon, 30 Aug 2004 14:13:04 +0000 (14:13 +0000)]
Patch #934356: if a module defines __all__, believe that rather than using
heuristics for filtering out imported names.

20 years agoWhitespace normalization.
Johannes Gijsbers [Mon, 30 Aug 2004 13:39:50 +0000 (13:39 +0000)]
Whitespace normalization.

20 years agoPatch #1003640: replace checkline() function parsing with new breakpoint logic:
Johannes Gijsbers [Mon, 30 Aug 2004 13:29:44 +0000 (13:29 +0000)]
Patch #1003640: replace checkline() function parsing with new breakpoint logic:

1) When a breakpoint is set via a function name:
- the breakpoint gets the lineno of the def statement
- a new funcname attribute is attached to the breakpoint

2) bdb.effective() calls new function checkfuncname() to handle:
- def statement is executed: don't break.
- a first executable line of a function with a breakpoint on the lineno of the
def statement is reached: break.

This fixes bugs 976878, 926369 and 875404. Thanks Ilya Sandler.

20 years agoAdd items
Andrew M. Kuchling [Mon, 30 Aug 2004 11:58:04 +0000 (11:58 +0000)]
Add items

20 years agoPatch #941486: add os.path.lexists(). Also fix bug #940578 by using lexists in glob...
Johannes Gijsbers [Mon, 30 Aug 2004 10:19:56 +0000 (10:19 +0000)]
Patch #941486: add os.path.lexists(). Also fix bug #940578 by using lexists in glob.glob.

20 years agoPickup Tk from tcltk directory.
Martin v. Löwis [Mon, 30 Aug 2004 09:22:30 +0000 (09:22 +0000)]
Pickup Tk from tcltk directory.

20 years agoBump Tk version to 8.4.7. Build into tcltk directory.
Martin v. Löwis [Mon, 30 Aug 2004 09:22:04 +0000 (09:22 +0000)]
Bump Tk version to 8.4.7. Build into tcltk directory.

20 years agoTeach the random module about os.urandom().
Raymond Hettinger [Mon, 30 Aug 2004 06:14:31 +0000 (06:14 +0000)]
Teach the random module about os.urandom().

* Use it for seeding when it is available.
* Provide an alternate generator based on it.

20 years agolong_pow(): Fix more instances of leaks in error cases.
Tim Peters [Mon, 30 Aug 2004 02:58:59 +0000 (02:58 +0000)]
long_pow():  Fix more instances of leaks in error cases.

Bugfix candidate -- although long_pow() is so different now I doubt a
patch would apply to 2.3.

20 years agoSF patch 936813: fast modular exponentiation
Tim Peters [Mon, 30 Aug 2004 02:44:38 +0000 (02:44 +0000)]
SF patch 936813: fast modular exponentiation

This checkin is adapted from part 2 (of 3) of Trevor Perrin's patch set.

BACKWARD INCOMPATIBILITY:  SHIFT must now be divisible by 5.  AFAIK,
nobody will care.  long_pow() could be complicated to worm around that,
if necessary.

long_pow():
  - BUGFIX:  This leaked the base and power when the power was negative
    (and so the computation delegated to float pow).
  - Instead of doing right-to-left exponentiation, do left-to-right.  This
    is more efficient for small bases, which is the common case.
  - In addition, if the exponent is large (more than FIVEARY_CUTOFF
    digits), precompute [a**i % c for i in range(32)], and go left to
    right 5 bits at a time.
l_divmod():
  - The signature changed so that callers who don't want the quotient,
    or don't want the remainder, can pass NULL in the slot they don't
    want.  This saves them from having to declare a vrbl for unwanted
    stuff, and remembering to decref it.
long_mod(), long_div(), long_classic_div():
  - Adjust to new l_divmod() signature, and simplified as a result.

20 years agoWhitespace normalization. test_difflib passes again.
Tim Peters [Sun, 29 Aug 2004 22:38:38 +0000 (22:38 +0000)]
Whitespace normalization.  test_difflib passes again.

20 years agoSF patch 936813: fast modular exponentiation
Tim Peters [Sun, 29 Aug 2004 22:16:50 +0000 (22:16 +0000)]
SF patch 936813: fast modular exponentiation

This checkin is adapted from part 1 (of 3) of Trevor Perrin's patch set.

x_mul()
  - sped a little by optimizing the C
  - sped a lot (~2X) if it's doing a square; note that long_pow() squares
    often
k_mul()
  - more cache-friendly now if it's doing a square
KARATSUBA_CUTOFF
  - boosted; gradeschool mult is quicker now, and it may have been too low
    for many platforms anyway
KARATSUBA_SQUARE_CUTOFF
  - new
  - since x_mul is a lot faster at squaring now, the point at which
    Karatsuba pays for squaring is much higher than for general mult

20 years agoReverting whitespace normalization. test_difflib fails with it -- the
Tim Peters [Sun, 29 Aug 2004 19:33:36 +0000 (19:33 +0000)]
Reverting whitespace normalization.  test_difflib fails with it -- the
test depends on invisible trailing whitespace in .py files.  The author will
have to repair that.

20 years agoWhitespace normalization.
Tim Peters [Sun, 29 Aug 2004 18:47:31 +0000 (18:47 +0000)]
Whitespace normalization.

20 years agoPatch #727483: Add AUTH_TYPE and REMOTE_USER.
Martin v. Löwis [Sun, 29 Aug 2004 16:53:26 +0000 (16:53 +0000)]
Patch #727483: Add AUTH_TYPE and REMOTE_USER.

20 years agoPatch #973204: Use -rpath instead of -R on Irix and Tru64.
Martin v. Löwis [Sun, 29 Aug 2004 16:40:55 +0000 (16:40 +0000)]
Patch #973204: Use -rpath instead of -R on Irix and Tru64.

20 years agoPatch #914575: difflib side by side diff support, diff.py s/b/s HTML option.
Martin v. Löwis [Sun, 29 Aug 2004 16:34:40 +0000 (16:34 +0000)]
Patch #914575: difflib side by side diff support, diff.py s/b/s HTML option.

20 years agoCentralize WITH_TSC processing.
Martin v. Löwis [Sun, 29 Aug 2004 15:51:52 +0000 (15:51 +0000)]
Centralize WITH_TSC processing.

20 years agoPatch #934711: Expose platform-specific entropy.
Martin v. Löwis [Sun, 29 Aug 2004 15:46:35 +0000 (15:46 +0000)]
Patch #934711: Expose platform-specific entropy.

20 years agoSF feature request #992967: array.array objects should support sequences.
Raymond Hettinger [Sun, 29 Aug 2004 07:50:43 +0000 (07:50 +0000)]
SF feature request #992967:  array.array objects should support sequences.

Made the constructor accept general iterables.

20 years agoWhitespace normalization.
Tim Peters [Sun, 29 Aug 2004 00:38:17 +0000 (00:38 +0000)]
Whitespace normalization.

20 years agoAdded an __iter__ method for test suites.
Jim Fulton [Sat, 28 Aug 2004 15:22:12 +0000 (15:22 +0000)]
Added an __iter__ method for test suites.

20 years agosetUp and tearDown functions are now passed the test object
Jim Fulton [Sat, 28 Aug 2004 14:58:31 +0000 (14:58 +0000)]
setUp and tearDown functions are now passed the test object

20 years ago- setUp and tearDown functions are now passed the test object
Jim Fulton [Sat, 28 Aug 2004 14:57:56 +0000 (14:57 +0000)]
- setUp and tearDown functions are now passed the test object

- Added a set_unittest_reportflags to set default reporting flags used
  when running doctests under unittest control.

20 years agoPyUnicode_Join(): Bozo Alert. While this is chugging along, it may
Tim Peters [Fri, 27 Aug 2004 22:35:44 +0000 (22:35 +0000)]
PyUnicode_Join():  Bozo Alert.  While this is chugging along, it may
need to convert str objects from the iterable to unicode.  So, if
someone set the system default encoding to something nasty enough,
the conversion process could mutate the input iterable as a side
effect, and PySequence_Fast doesn't hide that from us if the input was
a list.  IOW, can't assume the size of PySequence_Fast's result is
invariant across PyUnicode_FromObject() calls.

20 years agoPyUnicode_Join(): Rewrote to use PySequence_Fast(). This doesn't do
Tim Peters [Fri, 27 Aug 2004 21:32:02 +0000 (21:32 +0000)]
PyUnicode_Join():  Rewrote to use PySequence_Fast().  This doesn't do
much to reduce the size of the code, but greatly improves its clarity.
It's also quicker in what's probably the most common case (the argument
iterable is a list).  Against it, if the iterable isn't a list or a tuple,
a temp tuple is materialized containing the entire input sequence, and
that's a bigger temp memory burden.  Yawn.

20 years agoRemoved old "if 0:" block for leak detection; wouldn't work anymore anyway.
Tim Peters [Fri, 27 Aug 2004 15:29:59 +0000 (15:29 +0000)]
Removed old "if 0:" block for leak detection; wouldn't work anymore anyway.

20 years agoDon't really need ellipsis doctests for the syntax errors, because
Tim Peters [Fri, 27 Aug 2004 15:12:49 +0000 (15:12 +0000)]
Don't really need ellipsis doctests for the syntax errors, because
this module imports itself explicitly from test (so the "file names"
current doctest synthesizes for examples don't vary depending on how
test_generators is run).

20 years agoRemoved outdated comment
Edward Loper [Fri, 27 Aug 2004 14:56:58 +0000 (14:56 +0000)]
Removed outdated comment

20 years agoFixed 6 failures due to doctest changes.
Tim Peters [Fri, 27 Aug 2004 05:44:51 +0000 (05:44 +0000)]
Fixed 6 failures due to doctest changes.

20 years agotest_bug1001011(): Verify that
Tim Peters [Fri, 27 Aug 2004 05:36:07 +0000 (05:36 +0000)]
test_bug1001011():  Verify that

    s.join([t]) is t

for (s, t) in (str, str), (unicode, unicode), and (str, unicode).
For (unicode, str), verify that it's *not* t (the result is promoted
to unicode instead).  Also verify that when t is a subclass of str or
unicode that "the right thing" happens.

20 years agoPyUnicode_Join(): Missed a spot where I intended a cast from size_t to
Tim Peters [Fri, 27 Aug 2004 05:08:36 +0000 (05:08 +0000)]
PyUnicode_Join():  Missed a spot where I intended a cast from size_t to
int.  I sure wish MS would gripe about that!  Whatever, note that the
statement above it guarantees that the cast loses no info.

20 years agoFix the spelling of Fredrik Lundh's last name (unless there really is a
Brett Cannon [Fri, 27 Aug 2004 05:00:22 +0000 (05:00 +0000)]
Fix the spelling of Fredrik Lundh's last name (unless there really is a
"Fredrik Lund" who contributed the code in question).

20 years agoRemove unused method _OutputRedirectingPdb.resume
Edward Loper [Fri, 27 Aug 2004 04:29:23 +0000 (04:29 +0000)]
Remove unused method _OutputRedirectingPdb.resume

20 years ago- Removed redundant call to expandtabs in DocTestParesr.
Edward Loper [Fri, 27 Aug 2004 02:07:46 +0000 (02:07 +0000)]
- Removed redundant call to expandtabs in DocTestParesr.
- Improvements to interactive debugging support:
  - Changed the replacement pdb.set_trace to redirect stdout to the
    real stdout *only* during interactive debugging; stdout from code
    continues to go to the fake stdout.
  - When the interactive debugger gets to the end of an example,
    automatically continue.
  - Use a replacement linecache.getlines that will return source lines
    from doctest examples; this makes the source available to the
    debugger for interactive debugging.
- In test_doctest, use a specialized _FakeOutput class instead of a
  temporary file to fake stdin for the interactive interpreter.

20 years agoPyUnicode_Join(): Two primary aims:
Tim Peters [Fri, 27 Aug 2004 01:49:32 +0000 (01:49 +0000)]
PyUnicode_Join():  Two primary aims:

1. u1.join([u2]) is u2
2. Be more careful about C-level int overflow.

Since PySequence_Fast() isn't needed to achieve #1, it's not used -- but
the code could sure be simpler if it were.

20 years ago- Added DocTestParser.parse(), which parses a docstring into Examples
Edward Loper [Thu, 26 Aug 2004 18:05:07 +0000 (18:05 +0000)]
- Added DocTestParser.parse(), which parses a docstring into Examples
  and intervening text strings.
- Removed DocTestParser.get_program(): use script_from_examples()
  instead.
- Fixed bug in DocTestParser._INDENT_RE
- Fixed bug in DocTestParser._min_indent
- Moved _want_comment() to the utility function section

20 years agoMove test_bug1001011() to string_tests.MixinStrUnicodeTest so that
Walter Dörwald [Thu, 26 Aug 2004 16:53:04 +0000 (16:53 +0000)]
Move test_bug1001011() to string_tests.MixinStrUnicodeTest so that
it can be used for str and unicode. Drop the test for
   "".join([s]) is s
because this is an implementation detail (and doesn't work for unicode)

20 years agoCorrect incorrect "it's" to "its".
Johannes Gijsbers [Thu, 26 Aug 2004 10:40:12 +0000 (10:40 +0000)]
Correct incorrect "it's" to "its".

20 years agooutput_difference(): In fancy-diff cases, the way this split expected &
Tim Peters [Thu, 26 Aug 2004 05:44:27 +0000 (05:44 +0000)]
output_difference():  In fancy-diff cases, the way this split expected &
actual output into lines created spurious empty lines at the ends of
each.  Those matched, but the fancy diffs had surprising line counts (1
larger than expected), and tests kept having to slam <BLANKLINE> into the
expected output to account for this.  Using the splitlines() string method
with keepends=True instead accomplishes what was intended directly.

20 years agoAdd missing executable option to DummyCommand.
Martin v. Löwis [Thu, 26 Aug 2004 05:44:02 +0000 (05:44 +0000)]
Add missing executable option to DummyCommand.

20 years agoWhitespace normalization.
Tim Peters [Thu, 26 Aug 2004 05:23:19 +0000 (05:23 +0000)]
Whitespace normalization.

20 years ago_do_a_fancy_diff(): Pay no attention to the ellipses behind the curtain.
Tim Peters [Thu, 26 Aug 2004 05:21:59 +0000 (05:21 +0000)]
_do_a_fancy_diff():  Pay no attention to the ellipses behind the curtain.

While a fancy diff can be confusing in the presence of ellipses, so far
I'm finding (2-0-0) that it's much more a major aid in narrowing down the
possibilities when an ellipsis-slinging test fails.  So we no longer
refuse to do a fancy diff just because of ellipses.

This isn't ideal; it's just better.

20 years agoFine tune a word.
Tim Peters [Thu, 26 Aug 2004 04:52:46 +0000 (04:52 +0000)]
Fine tune a word.

20 years agoThinko repair.
Tim Peters [Thu, 26 Aug 2004 04:50:38 +0000 (04:50 +0000)]
Thinko repair.

20 years agoReorg of exception section. Now that there are fewer details needing
Tim Peters [Thu, 26 Aug 2004 04:47:31 +0000 (04:47 +0000)]
Reorg of exception section.  Now that there are fewer details needing
explanation, it's easier to push the remaining insufferably anal details
into a "fine print" section at the bottom.

20 years agoRemove unnecessary line.
Raymond Hettinger [Thu, 26 Aug 2004 04:29:47 +0000 (04:29 +0000)]
Remove unnecessary line.

20 years agoSmall wording fixups.
Raymond Hettinger [Thu, 26 Aug 2004 03:11:56 +0000 (03:11 +0000)]
Small wording fixups.

20 years agoChanged OutputChecker.output_difference to expect an Example object,
Edward Loper [Thu, 26 Aug 2004 03:00:24 +0000 (03:00 +0000)]
Changed OutputChecker.output_difference to expect an Example object,
rather than an expected output string.  This gives the
output_difference method access to more information, such as the
indentation of the example, which might be useful.

20 years agoAdded REPORT_ONLY_FIRST_FAILURE flag, which supresses output after the
Edward Loper [Thu, 26 Aug 2004 02:45:51 +0000 (02:45 +0000)]
Added REPORT_ONLY_FIRST_FAILURE flag, which supresses output after the
first failing example in each test.

20 years agoWhen building with --disable-toolbox-glue under Darwin, skip building any
Brett Cannon [Thu, 26 Aug 2004 01:44:07 +0000 (01:44 +0000)]
When building with --disable-toolbox-glue under Darwin, skip building any
Mac-specific modules.  Before all modules were compiled but would fail thanks
to a dependence on the code included when Python was built without the compiler
flag.

Closes bug #991962.

20 years agoRenamed UNIFIED_DIFF->REPORT_UDIFF; CONTEXT_DIFF->REPORT_CDIFF; and
Edward Loper [Thu, 26 Aug 2004 01:41:51 +0000 (01:41 +0000)]
Renamed UNIFIED_DIFF->REPORT_UDIFF; CONTEXT_DIFF->REPORT_CDIFF; and
NDIFF_DIFF->REPORT_NDIFF.  This establishes the naming convention that
all reporting options should begin with "REPORT_" (since reporting
options are a different class from output comparison options; but they
are both set in optionflags).

20 years agoShortened diff output for unified & context diffs
Edward Loper [Thu, 26 Aug 2004 01:31:56 +0000 (01:31 +0000)]
Shortened diff output for unified & context diffs

20 years ago- Changed the output of report_start() and report_unexpected_exception()
Edward Loper [Thu, 26 Aug 2004 01:19:50 +0000 (01:19 +0000)]
- Changed the output of report_start() and report_unexpected_exception()
  to be more consistent with report_failure()
- If `want` or `got` is empty, then print "Expected nothing\n" or
  "Got nothing\n" rather than "Expected:\n" or "Got:\n"
- Got rid of _tag_msg

20 years agoRestored half of a \versionadded only half of which should have been
Tim Peters [Thu, 26 Aug 2004 01:02:08 +0000 (01:02 +0000)]
Restored half of a \versionadded only half of which should have been
deleted.

20 years agoPatch #1015012. Improve markup and punctuation in libsocket.tex
Dave Cole [Thu, 26 Aug 2004 00:51:16 +0000 (00:51 +0000)]
Patch #1015012.  Improve markup and punctuation in libsocket.tex

20 years agoPatch #1014930. Expose current parse location to XMLParser.
Dave Cole [Thu, 26 Aug 2004 00:37:31 +0000 (00:37 +0000)]
Patch #1014930.  Expose current parse location to XMLParser.

20 years agoMinor improvements to the template code.
Raymond Hettinger [Thu, 26 Aug 2004 00:21:13 +0000 (00:21 +0000)]
Minor improvements to the template code.

* Add comment bars segregating this code from the rest.
* Improve readability of the re pattern with indentation and comments on
  the same line.
* Replace the groupdict() and get() pair with a direct call to group()
  which does the same thing.

20 years agoAdded an "exc_msg" attribute to Example (containing the expected
Edward Loper [Thu, 26 Aug 2004 00:05:43 +0000 (00:05 +0000)]
Added an "exc_msg" attribute to Example (containing the expected
exception message, or None if no exception is expected); and moved
exception parsing from DocTestRunner to DocTestParser.  This is
architecturally cleaner, since it moves all parsing work to
DocTestParser; and it should make it easier for code outside
DocTestRunner (notably debugging code) to properly handle expected
exceptions.