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
Johannes Gijsbers
24f141ab46
Raymond observed that sometimes it's better not to link modules, so I reverted
...
part of my previous last changes.
2004-09-25 00:55:38 +00:00
Tim Peters
06cc847cee
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.
2004-09-25 00:49:53 +00:00
Tim Peters
cac5e7b81d
Typo.
2004-09-25 00:11:43 +00:00
Tim Peters
7a082142d8
Since the LaTeX isn't doctest'ed, examples are always wrong <wink>.
2004-09-25 00:10:53 +00:00
Johannes Gijsbers
27ebcae450
- Use itemize instead of plain-text '*' for marking up a list.
...
- Add more ulink's to modules (this should probably become a standard macro).
2004-09-24 23:25:25 +00:00
Tim Peters
5a59d88e89
Whitespace normalization.
2004-09-24 23:16:41 +00:00
Johannes Gijsbers
3981511070
Port test_unpack to doctest (patch #736962 ).
2004-09-24 21:36:52 +00:00
Neil Schemenauer
6bc937cfd2
Add yet more tests for buffer().
2004-09-24 19:18:42 +00:00