Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Trivial bug fix: deque == [] is not a good way to check if a deque is empty. | Armin Rigo | 2004-09-27 | 1 | -1/+1 |
| | |||||
* | Use floor division operator. | Raymond Hettinger | 2004-09-27 | 7 | -8/+8 |
| | |||||
* | Use floor division operator. | Raymond Hettinger | 2004-09-27 | 1 | -3/+3 |
| | |||||
* | - Added a "parser" option to testfile() and DocFileTest(). | Edward Loper | 2004-09-27 | 1 | -1/+10 |
| | |||||
* | - Added a "parser" option to testfile() and DocFileTest(). | Edward Loper | 2004-09-27 | 1 | -5/+12 |
| | |||||
* | - Fixed typo in multi-line exception example | Edward Loper | 2004-09-27 | 1 | -6/+6 |
| | | | | - Fixed indentation for a verbatim block | ||||
* | Give a saner example for script_from_examples(); also mention an intended | Tim Peters | 2004-09-26 | 1 | -11/+25 |
| | | | | but not entirely obvious use case. | ||||
* | Made most module references "clickable". | Tim Peters | 2004-09-26 | 1 | -71/+70 |
| | |||||
* | Docs for run_docstring_examples(). | Tim Peters | 2004-09-26 | 1 | -0/+30 |
| | |||||
* | Checkin Tim's fix to an error discussed on python-dev. | Raymond Hettinger | 2004-09-26 | 2 | -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 modify | Raymond Hettinger | 2004-09-26 | 1 | -4/+6 |
| | | | | by factoring out the common prefix (the delimiter). | ||||
* | Replace -soname with -h for Solaris compatibility. Fixes #1034496. | Martin v. Löwis | 2004-09-26 | 1 | -1/+1 |
| | | | | Backported to 2.3. | ||||
* | Updated doctest doc news. | Tim Peters | 2004-09-26 | 1 | -1/+4 |
| | |||||
* | Added a lot of new stuff to the debugging section. | Tim Peters | 2004-09-26 | 1 | -29/+159 |
| | |||||
* | Removed debug_script from the public API: no docs, not public. I'm in | Tim Peters | 2004-09-26 | 1 | -1/+0 |
| | | | | | the process of writing docs for the other "missing" debug support functions. | ||||
* | register_optionflag(): Moved from the Debugging section to the section | Tim Peters | 2004-09-26 | 1 | -12/+19 |
| | | | | on option flags; added a versionadded decoration. | ||||
* | Document set_unittest_reportflags(). | Tim Peters | 2004-09-26 | 1 | -2/+59 |
| | |||||
* | Add set_unittest_reportflags() to the public API. Docs will follow | Tim Peters | 2004-09-26 | 1 | -0/+1 |
| | | | | "soon", after I repair the LaTeX I somehow damaged. | ||||
* | Removed two undocumented unittest support classes, and one undocumented | Tim Peters | 2004-09-26 | 1 | -3/+0 |
| | | | | | unittest support function, from the public interface. If they're not documented, they shouldn't be public. | ||||
* | Fix double word error. | Raymond Hettinger | 2004-09-25 | 1 | -1/+1 |
| | |||||
* | Assorted minor changes, plus a lot more soap. | Tim Peters | 2004-09-25 | 1 | -33/+39 |
| | |||||
* | Explain the motivation for the unittest functions, and beef up the | Tim Peters | 2004-09-25 | 1 | -51/+49 |
| | | | | example. Squash repeated argument descriptions. Minor rewordings. | ||||
* | Removed most of the module docstring. There's too much to explain now, | Tim Peters | 2004-09-25 | 1 | -124/+2 |
| | | | | and the LaTeX docs are in increasingly good shape. | ||||
* | Repaired mistakes in the descriptions of testmod()/testfile(), and | Tim Peters | 2004-09-25 | 1 | -45/+16 |
| | | | | squashed massive duplication of common argument descriptions. | ||||
* | Add warning notation about using 'bomb' setting. | Brett Cannon | 2004-09-25 | 1 | -1/+3 |
| | |||||
* | Remove 'extern' declaration for _Py_SwappedOp. | Brett Cannon | 2004-09-25 | 1 | -1/+1 |
| | |||||
* | Since the doctest warnings section was reduced to one bullet point, | Tim Peters | 2004-09-25 | 1 | -10/+6 |
| | | | | get rid of the itemize structure. | ||||
* | In the "doctest warnings" section, removed obsolete info, and noted that | Tim Peters | 2004-09-25 | 1 | -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 reverted | Johannes Gijsbers | 2004-09-25 | 1 | -7/+6 |
| | | | | part of my previous last changes. | ||||
* | Beef up the section on testfile(), giving a complete example in | Tim Peters | 2004-09-25 | 1 | -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 Peters | 2004-09-25 | 1 | -1/+1 |
| | |||||
* | Since the LaTeX isn't doctest'ed, examples are always wrong <wink>. | Tim Peters | 2004-09-25 | 1 | -17/+21 |
| | |||||
* | - Use itemize instead of plain-text '*' for marking up a list. | Johannes Gijsbers | 2004-09-24 | 1 | -29/+27 |
| | | | | - Add more ulink's to modules (this should probably become a standard macro). | ||||
* | Whitespace normalization. | Tim Peters | 2004-09-24 | 1 | -1/+1 |
| | |||||
* | Port test_unpack to doctest (patch #736962). | Johannes Gijsbers | 2004-09-24 | 1 | -144/+131 |
| | |||||
* | Add yet more tests for buffer(). | Neil Schemenauer | 2004-09-24 | 1 | -0/+11 |
| | |||||
* | Ensure negative offsets cannot be passed to buffer(). When composing | Neil Schemenauer | 2004-09-24 | 1 | -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 changing | Neil Schemenauer | 2004-09-24 | 1 | -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 Schemenauer | 2004-09-24 | 1 | -0/+8 |
| | |||||
* | Added log() function documentation | Vinay Sajip | 2004-09-24 | 1 | -0/+5 |
| | |||||
* | Added log() function | Vinay Sajip | 2004-09-24 | 1 | -0/+8 |
| | |||||
* | Added exception handling during handler initialization in fileConfig() | Vinay Sajip | 2004-09-24 | 1 | -24/+27 |
| | |||||
* | Whitespace normalization. | Tim Peters | 2004-09-24 | 1 | -1/+1 |
| | |||||
* | Add docstrings for regular expression objects and methods. | Raymond Hettinger | 2004-09-24 | 1 | -8/+51 |
| | |||||
* | Granted Noam Raphael's request for minor improvements to the re module and | Raymond Hettinger | 2004-09-24 | 3 | -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 beta1 | Andrew M. Kuchling | 2004-09-23 | 1 | -3/+3 |
| | |||||
* | Add various items | Andrew M. Kuchling | 2004-09-23 | 1 | -0/+19 |
| | |||||
* | float_richcompare(): Use the new Py_IS_NAN macro to ensure that, on | Tim Peters | 2004-09-23 | 1 | -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 platforms | Tim Peters | 2004-09-23 | 3 | -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 Peters | 2004-09-23 | 3 | -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. |