summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* - Added a "parser" option to testfile() and DocFileTest().Edward Loper2004-09-271-1/+10
|
* - Added a "parser" option to testfile() and DocFileTest().Edward Loper2004-09-271-5/+12
|
* - Fixed typo in multi-line exception exampleEdward Loper2004-09-271-6/+6
| | | | - Fixed indentation for a verbatim block
* Give a saner example for script_from_examples(); also mention an intendedTim Peters2004-09-261-11/+25
| | | | but not entirely obvious use case.
* Made most module references "clickable".Tim Peters2004-09-261-71/+70
|
* Docs for run_docstring_examples().Tim Peters2004-09-261-0/+30
|
* Checkin Tim's fix to an error discussed on python-dev.Raymond Hettinger2004-09-262-10/+25
| | | | | | | | | | | | | | | | | 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.
* Make the regex pattern easier to read, understand, and modifyRaymond Hettinger2004-09-261-4/+6
| | | | by factoring out the common prefix (the delimiter).
* Replace -soname with -h for Solaris compatibility. Fixes #1034496.Martin v. Löwis2004-09-261-1/+1
| | | | Backported to 2.3.
* Updated doctest doc news.Tim Peters2004-09-261-1/+4
|
* Added a lot of new stuff to the debugging section.Tim Peters2004-09-261-29/+159
|
* Removed debug_script from the public API: no docs, not public. I'm inTim Peters2004-09-261-1/+0
| | | | | the process of writing docs for the other "missing" debug support functions.
* register_optionflag(): Moved from the Debugging section to the sectionTim Peters2004-09-261-12/+19
| | | | on option flags; added a versionadded decoration.
* Document set_unittest_reportflags().Tim Peters2004-09-261-2/+59
|
* Add set_unittest_reportflags() to the public API. Docs will followTim Peters2004-09-261-0/+1
| | | | "soon", after I repair the LaTeX I somehow damaged.
* Removed two undocumented unittest support classes, and one undocumentedTim Peters2004-09-261-3/+0
| | | | | unittest support function, from the public interface. If they're not documented, they shouldn't be public.
* Fix double word error.Raymond Hettinger2004-09-251-1/+1
|
* Assorted minor changes, plus a lot more soap.Tim Peters2004-09-251-33/+39
|
* Explain the motivation for the unittest functions, and beef up theTim Peters2004-09-251-51/+49
| | | | example. Squash repeated argument descriptions. Minor rewordings.
* Removed most of the module docstring. There's too much to explain now,Tim Peters2004-09-251-124/+2
| | | | and the LaTeX docs are in increasingly good shape.
* Repaired mistakes in the descriptions of testmod()/testfile(), andTim Peters2004-09-251-45/+16
| | | | squashed massive duplication of common argument descriptions.
* Add warning notation about using 'bomb' setting.Brett Cannon2004-09-251-1/+3
|
* Remove 'extern' declaration for _Py_SwappedOp.Brett Cannon2004-09-251-1/+1
|
* Since the doctest warnings section was reduced to one bullet point,Tim Peters2004-09-251-10/+6
| | | | get rid of the itemize structure.
* In the "doctest warnings" section, removed obsolete info, and noted thatTim Peters2004-09-251-32/+16
| | | | ELLIPSIS can be used to deal with examples that embed object addresses.
* Raymond observed that sometimes it's better not to link modules, so I revertedJohannes Gijsbers2004-09-251-7/+6
| | | | part of my previous last changes.
* Beef up the section on testfile(), giving a complete example inTim Peters2004-09-251-22/+48
| | | | | | 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.
* Typo.Tim Peters2004-09-251-1/+1
|
* Since the LaTeX isn't doctest'ed, examples are always wrong <wink>.Tim Peters2004-09-251-17/+21
|
* - Use itemize instead of plain-text '*' for marking up a list.Johannes Gijsbers2004-09-241-29/+27
| | | | - Add more ulink's to modules (this should probably become a standard macro).
* Whitespace normalization.Tim Peters2004-09-241-1/+1
|
* Port test_unpack to doctest (patch #736962).Johannes Gijsbers2004-09-241-144/+131
|
* Add yet more tests for buffer().Neil Schemenauer2004-09-241-0/+11
|
* Ensure negative offsets cannot be passed to buffer(). When composingNeil Schemenauer2004-09-241-2/+15
| | | | | buffers, compute the new buffer size based on the old buffer size. Fixes SF bug #1034242.
* Fix buffer offset calculation (need to compute it before changingNeil Schemenauer2004-09-241-11/+7
| | | | | 'base'). Fixes SF bug #1033720. Move offset sanity checking to buffer_from_memory().
* Add a few more tests for the buffer() object.Neil Schemenauer2004-09-241-0/+8
|
* Added log() function documentationVinay Sajip2004-09-241-0/+5
|
* Added log() functionVinay Sajip2004-09-241-0/+8
|
* Added exception handling during handler initialization in fileConfig()Vinay Sajip2004-09-241-24/+27
|
* Whitespace normalization.Tim Peters2004-09-241-1/+1
|
* Add docstrings for regular expression objects and methods.Raymond Hettinger2004-09-241-8/+51
|
* Granted Noam Raphael's request for minor improvements to the re module andRaymond Hettinger2004-09-243-10/+21
| | | | | | | | | | | | | | its documentation. * Documented that the compiled re methods are supposed to be more full featured than their simpilified function counterparts. * Documented the existing start and stop position arguments for the findall() and finditer() methods of compiled regular expression objects. * Added an optional flags argument to the re.findall() and re.finditer() functions. This aligns their API with that for re.search() and re.match().
* Update for beta1Andrew M. Kuchling2004-09-231-3/+3
|
* Add various itemsAndrew M. Kuchling2004-09-231-0/+19
|
* float_richcompare(): Use the new Py_IS_NAN macro to ensure that, onTim Peters2004-09-231-11/+9
| | | | | platforms where that macro works, NaN compared to an int or long works the same as NaN compared to a finite float.
* Introduced a Py_IS_NAN macro, which probably works on the major platformsTim Peters2004-09-233-3/+26
| | | | | | today. pyconfig.h can override it if not, and can also override Py_IS_INFINITY now. Py_IS_NAN and Py_IS_INFINITY are overridden now for Microsoft compilers, using efficient MS-specific spellings.
* SF bug #513866: Float/long comparison anomaly.Tim Peters2004-09-233-11/+318
| | | | | | | | | | | | | | | | | | When an integer is compared to a float now, the int isn't coerced to float. This avoids spurious overflow exceptions and insane results. This should compute correct results, without raising spurious exceptions, in all cases now -- although I expect that what happens when an int/long is compared to a NaN is still a platform accident. Note that we had potential problems here even with "short" ints, on boxes where sizeof(long)==8. There's #ifdef'ed code here to handle that, but I can't test it as intended. I tested it by changing the #ifdef to trigger on my 32-bit box instead. I suppose this is a bugfix candidate, but I won't backport it. It's long-winded (for speed) and messy (because the problem is messy). Note that this also depends on a previous 2.4 patch that introduced _Py_SwappedOp[] as an extern.
* Improve three recipes in the itertools docs.Raymond Hettinger2004-09-232-7/+19
|
* Arghh, checked in wrong draft. Replacing with correct one.Raymond Hettinger2004-09-231-3/+4
|
* Use local variables in StringIO.write().Raymond Hettinger2004-09-231-10/+11
| | | | Makes it easier on the eyes and a bit more snappy.