summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Renamed UNIFIED_DIFF->REPORT_UDIFF; CONTEXT_DIFF->REPORT_CDIFF; andEdward Loper2004-08-263-28/+28
| | | | | | | NDIFF_DIFF->REPORT_NDIFF. This establishes the naming convention that all reporting options should begin with "REPORT_" (since reporting options are a different class from output comparison options; but they are both set in optionflags).
* Shortened diff output for unified & context diffsEdward Loper2004-08-262-12/+8
|
* - Changed the output of report_start() and report_unexpected_exception()Edward Loper2004-08-262-58/+64
| | | | | | | to be more consistent with report_failure() - If `want` or `got` is empty, then print "Expected nothing\n" or "Got nothing\n" rather than "Expected:\n" or "Got:\n" - Got rid of _tag_msg
* Restored half of a \versionadded only half of which should have beenTim Peters2004-08-261-0/+3
| | | | deleted.
* Patch #1015012. Improve markup and punctuation in libsocket.texDave Cole2004-08-262-5/+5
|
* Patch #1014930. Expose current parse location to XMLParser.Dave Cole2004-08-264-0/+76
|
* Minor improvements to the template code.Raymond Hettinger2004-08-261-18/+15
| | | | | | | | * Add comment bars segregating this code from the rest. * Improve readability of the re pattern with indentation and comments on the same line. * Replace the groupdict() and get() pair with a direct call to group() which does the same thing.
* Added an "exc_msg" attribute to Example (containing the expectedEdward Loper2004-08-262-59/+139
| | | | | | | | | exception message, or None if no exception is expected); and moved exception parsing from DocTestRunner to DocTestParser. This is architecturally cleaner, since it moves all parsing work to DocTestParser; and it should make it easier for code outside DocTestRunner (notably debugging code) to properly handle expected exceptions.
* Re-generate configure with recent configure.in change (for patch #1016224).Trent Mick2004-08-251-219/+431
|
* Apply patch #1016224: configure.in change to allow build of _bsddb module onTrent Mick2004-08-251-3/+8
| | | | AIX 5.1.
* Only recognize the expected output as an exception if it *starts* withEdward Loper2004-08-253-54/+55
| | | | | | | | a traceback message. I.e., examples that raise exceptions may no longer generate pre-exception output. This restores the behavior of doctest in python 2.3. The ability to check pre-exception output is being removed because it makes the documentation simpler; and because there are very few use cases for it.
* Fix docstring typo.Raymond Hettinger2004-08-251-1/+1
|
* Bypass peepholing of code with lineno tables having intervals >= 255.Raymond Hettinger2004-08-251-4/+8
| | | | | | | | Allows the lineno fixup code to remain simple and not have to deal with multibyte codings. * Add an assertion to that effect. * Remove the XXX comment on the subject.
* Fix typo in comment and add clarification.Raymond Hettinger2004-08-251-1/+2
|
* clean up markup for --executable descriptionFred Drake2004-08-251-2/+3
|
* Add various itemsAndrew M. Kuchling2004-08-251-10/+102
|
* Patch #970015: Replace - by _ in version and release.Martin v. Löwis2004-08-252-3/+4
|
* Patch #970019: Include version and release in the BuildRoot.Martin v. Löwis2004-08-252-1/+3
|
* Patch #736857, #736859: Add -e option to build_scripts.Martin v. Löwis2004-08-254-3/+16
|
* Patch #798244: More urllib2 examples.Martin v. Löwis2004-08-251-1/+62
|
* Patch #1014992: Never return more than a line from readline.Martin v. Löwis2004-08-251-3/+1
| | | | Will backport to 2.3.
* Patch #1015021: Stop claiming that coerce can return None.Martin v. Löwis2004-08-252-5/+5
| | | | Will backport to 2.3.
* Back out 1.289, which breaks platforms needing addrinfo.h, andMartin v. Löwis2004-08-251-31/+0
| | | | | 1.293, 1.298, and 1.300, which have tried to fix this for specific platforms.
* Simplify chains of conditional jumps.Raymond Hettinger2004-08-251-2/+25
| | | | (Suggested by Neal Norwitz.)
* Ah whoops, we didn't turn string into a package (thanks Neal!)Barry Warsaw2004-08-251-12/+1
|
* PEP 292 classes Template and SafeTemplate are added to the string module.Barry Warsaw2004-08-257-93/+329
| | | | | | | | This patch includes test cases and documentation updates, as well as NEWS file updates. This patch also updates the sre modules so that they don't import the string module, breaking direct circular imports.
* Stop producing or using OverflowWarning. PEP 237 thought this wouldTim Peters2004-08-258-45/+25
| | | | | | | happen in 2.3, but nobody noticed it still was getting generated (the warning was disabled by default). OverflowWarning and PyExc_OverflowWarning should be removed for 2.5, and left notes all over saying so.
* SF #1015517, get readline to compile with older compilersNeal Norwitz2004-08-251-3/+4
|
* Fix for [ 1010677 ] thread Module Breaks PyGILState_Ensure(),Mark Hammond2004-08-242-5/+7
| | | | | and a test case. When booting a new thread, use the PyGILState API to manage the GIL.
* Keep option parser from gobbling up the filename to be profiled and theSkip Montanaro2004-08-241-0/+1
| | | | | flags it accepts. It's too late to change optparse's default behavior now, but I find the default setting of allow_interspersed_args very weird.
* Fixed bug in DatagramHandler.send()Vinay Sajip2004-08-241-0/+2
|
* Incorporate review comments courtesy of Neal Norwitz:Raymond Hettinger2004-08-241-6/+8
| | | | | | | | | * Perform the code length check earlier. * Eliminate the extra PyMem_Free() upon hitting an EXTENDED_ARG. * Assert that the NOP count used in jump retargeting matches the NOPs eliminated in the final step. * Add an XXX note to indicate that more work is being to done to handle linenotab with intervals > 255.
* SF Patch #1013667: Cleanup Peepholer OutputRaymond Hettinger2004-08-234-38/+206
| | | | | | | | | * Make a pass to eliminate NOPs. Produce code that is more readable, more compact, and a tiny bit faster. Makes the peepholer more flexible in the scope of allowable transformations. * With Guido's okay, bumped up the magic number so that this patch gets widely exercised before the alpha goes out.
* Add Nick Coghlan for his patch solving an issue with joining stringRaymond Hettinger2004-08-231-0/+1
| | | | subclasses.
* SF Patch #1007087: Return new string for single subclass joins (Bug #1001011)Raymond Hettinger2004-08-232-12/+31
| | | | | | | (Patch contributed by Nick Coghlan.) Now joining string subtypes will always return a string. Formerly, if there were only one item, it was returned unchanged.
* The attempt to shut up deprecation warnings for doctest's own use ofTim Peters2004-08-231-2/+5
| | | | | is_private in its tests failed if doctest.py was run directly. Now it works.
* test_DocTestFinder(): This test failed when test_doctest was runTim Peters2004-08-231-2/+5
| | | | | directly, due to assuming a filename specific to running tests "the normal way". +ELLIPSIS to the rescue!
* Moved some test cases from doctest to test_doctest.Tim Peters2004-08-232-118/+126
|
* Misc cleanups.Tim Peters2004-08-231-28/+26
|
* debug_script(): I changed this in haste before to take out the use ofTim Peters2004-08-231-15/+22
| | | | | | | NamedTemporaryFile (which can't work for this function's purposes on Windows). Leaving temp files behind wasn't a great idea either, though, so try to clean up. At least the test suite no longer leaves any of these guys behind now.
* Patch #1014237: Consistently return booleans throughout.Martin v. Löwis2004-08-231-10/+10
|
* Updated the socketpair() docstring and documentation to explain that theDave Cole2004-08-232-4/+7
| | | | | default famility is AF_UNIX if defined for the platform, otherwise the default is AF_INET.
* Removed unnecessary calls to signal() to ignore SIGPIPE. SIGPIPE is ignoredDave Cole2004-08-231-13/+0
| | | | in initsigs() inside pythonrun.c.
* Removed redundant versionadded{} for NDIFF_DIFF. Virtually everythingTim Peters2004-08-231-1/+0
| | | | | | in this section is new in 2.4, and that's all mentioned already in versionadded{} thingies at the end of the section. It hurts readability to have them after every line <wink>.
* Add version infoNeal Norwitz2004-08-221-0/+1
|
* Flush bz2 data even if nothing had been written so far. Fixes #1013882.Martin v. Löwis2004-08-222-3/+9
| | | | Will backport to 2.3.
* Fix repr for negative imaginary part. Fixes #1013908.Martin v. Löwis2004-08-222-2/+7
|
* Start deferring to the LaTeX docs for details. I'd like to move theTim Peters2004-08-221-29/+3
| | | | | | | | | docstrings toward being a lot shorter, and telling the whole truth in the manual instead. This change is an example: the manual has detailed explanations of the option names now, so it's Bad to repeat them in the docstring (two detailed descriptions are certain to get out of synch). Just listing the names has memory-jogging benefits, though, so that's still helpful in the docstring.
* Added NDIFF_DIFF option.Tim Peters2004-08-223-10/+68
|
* Whitespace normalization.Tim Peters2004-08-222-5/+4
|