Neal Norwitz
f076953eb1
SF patch #1005778 , Fix seg fault if list object is modified during list.index()
...
Backport candidate
2004-08-13 03:18:29 +00:00
Fred Drake
39689c5c6a
make exception propogation more efficient; this avoids having Expat parse
...
the remaining data in the buffer (which it had done happily without reporting
any results)
this depends on a new feature in Expat added in 1.95.8
2004-08-13 03:12:57 +00:00
Fred Drake
d7ea55b1b8
include at least one example of an exception passing through pyexpat
2004-08-13 03:09:07 +00:00
Neal Norwitz
2e56c8a260
SF #1005913 , Patch to allow building of paper-*/dist.pdf by Jeff Epler
...
There were subsections without sections, so drop a sub.
2004-08-13 02:56:16 +00:00
Neal Norwitz
ee6511b309
Fix the version number in which changes were made
2004-08-13 02:34:06 +00:00
Tim Peters
7ea48ddd4f
Nit in _IS_BLANK_OR_COMMENT comment -- it doesn't matter how this is
...
implemented, just what it does.
2004-08-13 01:52:59 +00:00
Tim Peters
2603960525
Markup fiddling.
2004-08-13 01:49:12 +00:00
Tim Peters
8a3b69ca8f
Excruciatingly slow progress on the docs. Option flags / directive names
...
are documented now, and ripped out a bunch of "private name" convolutions.
2004-08-12 22:31:25 +00:00
Tim Peters
79b52b7261
Boosted the stack reservation for python.exe and python_w.exe from the
...
default 1MB to 2 million bytes. The test suite passes with -uall again
(test_compiler no longer drives WinXP into an insane state).
2004-08-12 18:37:10 +00:00
Michael W. Hudson
e667e66507
Report refleaks to stderr as the tests run as well as logging them
...
to a file.
2004-08-12 18:27:48 +00:00
Michael W. Hudson
800ba2375a
This is my patch:
...
[ 1005891 ] support --with-tsc on PPC
plus a trivial change to settscdump's docstring and a Misc/NEWS entry.
2004-08-12 18:19:17 +00:00
Tim Peters
d459f536c5
code_new(): Wouldn't compile on Windows, because of gcc'ism.
2004-08-12 18:16:43 +00:00
Michael W. Hudson
5e897959db
This is my patch
...
[ 1004703 ] Make func_name writable
plus fixing a couple of nits in the documentation changes spotted by MvL
and a Misc/NEWS entry.
2004-08-12 18:12:44 +00:00
Michael W. Hudson
5523c2517f
A NEWS entry for my last checked in change (I've gotten out of the
...
habit of these, sorry).
2004-08-12 18:09:00 +00:00
Michael W. Hudson
6093462739
Fix bug
...
[ 1005248 ] new.code() not cleanly checking its arguments
using the result of new.code() can still destroy the sun, but merely
calling the function shouldn't any more.
I also rewrote the existing tests of new.code() to use vastly less
un-bogus arguments, and added tests for the previous insane behaviours.
2004-08-12 17:56:29 +00:00
Martin v. Löwis
fd39ad4937
Patch #1005468 : Disambiguate "min() or max()" exception string.
2004-08-12 14:42:37 +00:00
Martin v. Löwis
9ecf326714
Patch #1006916 : Remove ODBC library references.
2004-08-12 14:07:49 +00:00
Martin v. Löwis
d632050d1d
Define _BSD_TYPES. Fixes #1005308 . Backported to 2.3.
2004-08-12 13:45:08 +00:00
Martin v. Löwis
0cb3c63503
Patch #1005568 : Use _SC_PAGESIZE on Irix.
...
Backported to 2.3.
2004-08-12 13:26:56 +00:00
Martin v. Löwis
a9170c7eac
Patch #808719 : Ignore the locale's encoding if it is an empty string.
...
Backported to 2.3.
2004-08-12 13:14:52 +00:00
Edward Loper
68ba9a685d
In output_difference(), replace blank lines in `want` with <BLANKLINE>
...
(rather than replacing <BLANKLINE> with blank lines in `got`). This
makes it easier to see what's intended.
2004-08-12 02:43:49 +00:00
Edward Loper
a5db6009fe
- Changed output of DocTestParser.get_program() to make it easier to
...
visually distinguish the expected output from the comments (use
"##" to mark expected outputs, and "#" to mark comments).
- If the string given to DocTestParser.get_program() is indented, then
strip its indentation. (In particular, find the min indentation of
non-blank lines, and strip that indentation from all lines.)
2004-08-12 02:41:30 +00:00
Edward Loper
8e4a34ba09
- Added __docformat__
...
- Added comments for some regexps
- If the traceback type/message don't match, then still print full
traceback in report_failure (not just the first & last lines)
- Renamed DocTestRunner.__failure_header -> _failure_header
2004-08-12 02:34:27 +00:00
Edward Loper
74bca7aa44
- Changed option directives to be example-specific. (i.e., they now
...
modify option flags for a single example; they do not turn options
on or off.)
- Added "indent" and "options" attributes for Example
- Got rid of add_newlines param to DocTestParser._parse_example (it's
no longer needed; Example's constructor now takes care of it).
- Added some docstrings
2004-08-12 02:27:44 +00:00
Edward Loper
ac20f57c28
- Added a register_optionflag function (so users can add their own
...
option flags); and use it to define the existing optionflag
constants.
2004-08-12 02:02:24 +00:00
Fred Drake
568671fc0f
avoid version numbers in the text where possible
2004-08-10 21:20:10 +00:00
Fred Drake
ba100c98ad
clarify the behavior of the .first() and .last() methods for empty
...
databases
this should be backported to the release23-maint branch
2004-08-10 19:22:48 +00:00
Andrew M. Kuchling
f54ac7e0ee
Spelling fix
2004-08-10 19:01:50 +00:00
Fred Drake
d62d507b9a
added missing documentation for UseForeignDTD() (new in 2.3)
...
someone should backport to the release23-maint branch
2004-08-10 17:18:32 +00:00
Fred Drake
fb568ca52a
add descriptions for many of the new error codes
2004-08-10 16:47:18 +00:00
Fred Drake
9d92d5a9ac
minor changes to make this format again
2004-08-10 15:41:03 +00:00
Tim Peters
c2388a2b9c
Start rewriting doctest's LaTeX docs. Damn, this is slow going!
2004-08-10 01:41:28 +00:00
Piers Lauder
6a4e635beb
Fix typo in getquotaroot parameter reported by Thierry FLORAC. Also amplify doc string for select to indicate proper way to obtain other responses.
2004-08-10 01:24:54 +00:00
Tim Peters
494aaee902
Whitespace normalization.
2004-08-09 18:54:11 +00:00
Andrew M. Kuchling
24884a5ccc
[Patch #1005465 ] Markup tweaks
2004-08-09 17:36:56 +00:00
Andrew M. Kuchling
e236b38731
[Patch #1005491 ] use __name__ == '__main__' in scripts
2004-08-09 17:27:55 +00:00
Tim Peters
6c542b731c
Edward's latest checkins somehow managed to wipe out my previous latest
...
checkins. Reapplying the latter changes.
2004-08-09 16:43:36 +00:00
Edward Loper
a1ef6110ba
- DocTest is now a simple container class; its constructor is no longer
...
responsible for parsing the string.
- Renamed Parser to DocTestParser
- DocTestParser.get_*() now accept the string & name as command-line
arguments; the parser's constructor is now empty.
- Added DocTestParser.get_doctest() method
- Replaced "doctest_factory" argument to DocTestFinder with a "parser"
argument (takes a DocTestParser).
- Changed _tag_msg to take an indentation string argument.
2004-08-09 16:14:41 +00:00
Tim Peters
413ced6c22
This started as a spelling and whitespace cleanup. The comment for
...
the set_trace fiddling didn't make sense to me, and I ended up reworking
that part of the code. We really do want to save and restore
pdb.set_trace, so that each dynamically nested level of doctest gets
sys.stdout fiddled to what's appropriate for *it*. The only "trick"
really needed is that these layers of set_trace wrappers each call the
original pdb.set_trace (instead of the current pdb.set_trace).
2004-08-09 15:43:47 +00:00
Jason Tishler
0d2a75c7b8
Patch #1006003 : Cygwin standard module build problems
...
Add missing PyAPI_FUNC/PyAPI_DATA macros.
2004-08-09 15:02:30 +00:00
Andrew M. Kuchling
7f203b847b
Add item
2004-08-09 14:48:28 +00:00
Fred Drake
151df0794d
- make a module reference a hyperlink
...
- wrap a long line
2004-08-09 14:12:05 +00:00
Fred Drake
830d8b8b80
fix markup nit
2004-08-09 14:06:58 +00:00
Jason Tishler
c246cb76e6
Bug #1001857 : socketmodule does not build under cygwin
...
Restore clean building under Cygwin.
2004-08-09 13:25:59 +00:00
Jim Fulton
356fd19c31
Added support for pdb.set_trace.
2004-08-09 11:34:47 +00:00
Dave Cole
9dc19c2515
Ooops - for some reason I had the wrong versionadded...
2004-08-09 05:59:09 +00:00
Dave Cole
331708b226
Patch #1003700 : Add socketpair function to socket module.
2004-08-09 04:51:41 +00:00
Tim Peters
80e53141b9
Removed lots of stuff from the module docstring. My intent for 2.4 is
...
to put details in the LaTeX docs instead, and lots of stuff in the
module docstring wasn't useful anyway.
2004-08-09 04:34:45 +00:00
Tim Peters
208ca7075f
Repair some out-of-date comments.
2004-08-09 04:12:36 +00:00
Tim Peters
bb43147312
Drop the excruciating newline requirements on arguments to
...
Example.__init__. The constructor now adds trailing newlines when
needed, and no longer distinguishes between multi- and single-line
cases for source.
2004-08-09 03:51:46 +00:00