Skip Montanaro
67db9a5b72
typo
2004-09-28 18:30:03 +00:00
Raymond Hettinger
06cc973d06
Replaced a test with an assertion.
...
(Suggested by Michael Hudson.)
2004-09-28 17:22:12 +00:00
Tim Peters
01ba799244
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.
2004-09-28 16:12:50 +00:00
Edward Loper
7d88a58e85
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.)
2004-09-28 05:50:57 +00:00
Raymond Hettinger
4cda01e260
* Increase test coverage.
...
* Have groupby() be careful about decreffing structure members.
2004-09-28 04:45:28 +00:00
Edward Loper
aec3c9b54f
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).
2004-09-28 04:29:57 +00:00
Brett Cannon
bfef869510
Add note about inclusion of DarwinPorts directories in setup.py on darwin.
2004-09-28 04:08:11 +00:00
Brett Cannon
35b93d9720
Add the directories where DarwinPorts installs library and include files to
...
the proper path directories for compiling extension modules.
2004-09-28 03:49:52 +00:00
Edward Loper
1793dd31de
Fixed minor typo in interactive example (extra '.'s in '...' prompts)
2004-09-28 03:12:01 +00:00
Edward Loper
dcdb4b4d78
Fixed minor typo in interactive example (extra blank line)
2004-09-28 03:08:57 +00:00
Raymond Hettinger
78a5271d3e
SF bug #1033038 : Misleading error message in random.choice
...
Added a clarifying line to the docs.
2004-09-28 03:04:23 +00:00
Edward Loper
ad512265a5
Fixed minor typo in interactive example
2004-09-28 02:56:45 +00:00
Edward Loper
3077b02ff4
Fixed minor typo in interactive example (backslash shouldn't be doubled)
2004-09-28 02:54:54 +00:00
Edward Loper
a7f62814cf
Updated interactive examples in the "Examples" session to reflect the
...
fact that compiler.ast.Function now takes a "decorators" argument.
2004-09-28 02:53:50 +00:00
Raymond Hettinger
87de0ca741
Silence a compiler warning by supplying the correct argument type to
...
the htons() function.
2004-09-28 02:19:40 +00:00
Raymond Hettinger
6429a4727e
Use Py_CLEAR(). Add unrelated test.
2004-09-28 01:51:35 +00:00
Greg Ward
b6f7fb7327
Major overhaul to reflect Optik 1.5. Section references currently broken.
2004-09-28 01:30:23 +00:00
Raymond Hettinger
855d9a985b
Plug a leak and beef-up test coverage.
2004-09-28 00:03:54 +00:00
Raymond Hettinger
630e5355b5
Rename test for comparision errors.
2004-09-27 23:11:35 +00:00
Raymond Hettinger
63251781d1
Beef-up tests for greater coverage and refcount checking.
2004-09-27 22:48:40 +00:00
Armin Rigo
b6aa856f25
Patch #1009075 , bug #952953 : allow execve with empty 2nd argument
2004-09-27 19:54:33 +00:00
Armin Rigo
9f90439817
Patch #1011240 : SystemError generated by struct.pack('P', 'foo').
2004-09-27 19:27:51 +00:00
Armin Rigo
b562bc672b
Trivial bug fix: deque == [] is not a good way to check if a deque is empty.
2004-09-27 17:49:00 +00:00
Raymond Hettinger
ffdb8bb99c
Use floor division operator.
2004-09-27 15:29:05 +00:00
Raymond Hettinger
4837a223ee
Use floor division operator.
2004-09-27 14:23:40 +00:00
Edward Loper
a4c6a8522c
- Added a "parser" option to testfile() and DocFileTest().
2004-09-27 04:08:20 +00:00
Edward Loper
498a1868e7
- Added a "parser" option to testfile() and DocFileTest().
2004-09-27 03:42:58 +00:00
Edward Loper
456ff91664
- Fixed typo in multi-line exception example
...
- Fixed indentation for a verbatim block
2004-09-27 03:30:44 +00:00
Tim Peters
36ee8ce373
Give a saner example for script_from_examples(); also mention an intended
...
but not entirely obvious use case.
2004-09-26 21:51:25 +00:00
Tim Peters
9463d8761b
Made most module references "clickable".
2004-09-26 21:05:03 +00:00
Tim Peters
0041121c25
Docs for run_docstring_examples().
2004-09-26 20:45:04 +00:00
Raymond Hettinger
aa241e0149
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.
2004-09-26 19:24:20 +00:00
Raymond Hettinger
55593c3ef5
Make the regex pattern easier to read, understand, and modify
...
by factoring out the common prefix (the delimiter).
2004-09-26 18:56:44 +00:00
Martin v. Löwis
4d9559a47e
Replace -soname with -h for Solaris compatibility. Fixes #1034496 .
...
Backported to 2.3.
2004-09-26 17:26:55 +00:00
Tim Peters
a80a2c8e67
Updated doctest doc news.
2004-09-26 05:13:18 +00:00
Tim Peters
05b05febad
Added a lot of new stuff to the debugging section.
2004-09-26 05:09:59 +00:00
Tim Peters
3afaaf2487
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.
2004-09-26 03:50:06 +00:00
Tim Peters
16be62f054
register_optionflag(): Moved from the Debugging section to the section
...
on option flags; added a versionadded decoration.
2004-09-26 02:38:41 +00:00
Tim Peters
6a0a64b7ad
Document set_unittest_reportflags().
2004-09-26 02:12:40 +00:00
Tim Peters
9d02a7cfa0
Add set_unittest_reportflags() to the public API. Docs will follow
...
"soon", after I repair the LaTeX I somehow damaged.
2004-09-26 01:50:24 +00:00
Tim Peters
261b28aac6
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.
2004-09-26 01:24:23 +00:00
Raymond Hettinger
c90ea82302
Fix double word error.
2004-09-25 08:09:23 +00:00
Tim Peters
3f7912521d
Assorted minor changes, plus a lot more soap.
2004-09-25 03:50:35 +00:00
Tim Peters
8c0a2cf938
Explain the motivation for the unittest functions, and beef up the
...
example. Squash repeated argument descriptions. Minor rewordings.
2004-09-25 03:02:23 +00:00
Tim Peters
48983fc484
Removed most of the module docstring. There's too much to explain now,
...
and the LaTeX docs are in increasingly good shape.
2004-09-25 02:41:28 +00:00
Tim Peters
b2b26aca13
Repaired mistakes in the descriptions of testmod()/testfile(), and
...
squashed massive duplication of common argument descriptions.
2004-09-25 01:51:49 +00:00
Brett Cannon
35ae3dd5aa
Add warning notation about using 'bomb' setting.
2004-09-25 01:39:56 +00:00
Brett Cannon
a5ca2e7220
Remove 'extern' declaration for _Py_SwappedOp.
2004-09-25 01:37:24 +00:00
Tim Peters
2dc820599b
Since the doctest warnings section was reduced to one bullet point,
...
get rid of the itemize structure.
2004-09-25 01:30:16 +00:00
Tim Peters
39c5de0376
In the "doctest warnings" section, removed obsolete info, and noted that
...
ELLIPSIS can be used to deal with examples that embed object addresses.
2004-09-25 01:22:29 +00:00