Staging
v0.5.1
https://github.com/python/cpython

sort by:
Revision Author Date Message Commit Date
0973b99 SF patch 936813: fast modular exponentiation This checkin is adapted from part 1 (of 3) of Trevor Perrin's patch set. x_mul() - sped a little by optimizing the C - sped a lot (~2X) if it's doing a square; note that long_pow() squares often k_mul() - more cache-friendly now if it's doing a square KARATSUBA_CUTOFF - boosted; gradeschool mult is quicker now, and it may have been too low for many platforms anyway KARATSUBA_SQUARE_CUTOFF - new - since x_mul is a lot faster at squaring now, the point at which Karatsuba pays for squaring is much higher than for general mult 29 August 2004, 22:16:50 UTC
afb5f94 Reverting whitespace normalization. test_difflib fails with it -- the test depends on invisible trailing whitespace in .py files. The author will have to repair that. 29 August 2004, 19:33:36 UTC
45e77c5 Whitespace normalization. 29 August 2004, 18:47:31 UTC
a28b3e6 Patch #727483: Add AUTH_TYPE and REMOTE_USER. 29 August 2004, 16:53:26 UTC
061f132 Patch #973204: Use -rpath instead of -R on Irix and Tru64. 29 August 2004, 16:40:55 UTC
e064b41 Patch #914575: difflib side by side diff support, diff.py s/b/s HTML option. 29 August 2004, 16:34:40 UTC
87fa785 Centralize WITH_TSC processing. 29 August 2004, 15:51:52 UTC
dc3883f Patch #934711: Expose platform-specific entropy. 29 August 2004, 15:46:35 UTC
6ab78cd SF feature request #992967: array.array objects should support sequences. Made the constructor accept general iterables. 29 August 2004, 07:50:43 UTC
df7a208 Whitespace normalization. 29 August 2004, 00:38:17 UTC
fafd874 Added an __iter__ method for test suites. 28 August 2004, 15:22:12 UTC
9f556a4 setUp and tearDown functions are now passed the test object 28 August 2004, 14:58:31 UTC
f54bad4 - setUp and tearDown functions are now passed the test object - Added a set_unittest_reportflags to set default reporting flags used when running doctests under unittest control. 28 August 2004, 14:57:56 UTC
91879ab PyUnicode_Join(): Bozo Alert. While this is chugging along, it may need to convert str objects from the iterable to unicode. So, if someone set the system default encoding to something nasty enough, the conversion process could mutate the input iterable as a side effect, and PySequence_Fast doesn't hide that from us if the input was a list. IOW, can't assume the size of PySequence_Fast's result is invariant across PyUnicode_FromObject() calls. 27 August 2004, 22:35:44 UTC
05eba1f PyUnicode_Join(): Rewrote to use PySequence_Fast(). This doesn't do much to reduce the size of the code, but greatly improves its clarity. It's also quicker in what's probably the most common case (the argument iterable is a list). Against it, if the iterable isn't a list or a tuple, a temp tuple is materialized containing the entire input sequence, and that's a bigger temp memory burden. Yawn. 27 August 2004, 21:32:02 UTC
cca0183 Removed old "if 0:" block for leak detection; wouldn't work anymore anyway. 27 August 2004, 15:29:59 UTC
aef8cfa Don't really need ellipsis doctests for the syntax errors, because this module imports itself explicitly from test (so the "file names" current doctest synthesizes for examples don't vary depending on how test_generators is run). 27 August 2004, 15:12:49 UTC
0fafacc Removed outdated comment 27 August 2004, 14:56:58 UTC
77dcccc Fixed 6 failures due to doctest changes. 27 August 2004, 05:44:51 UTC
108f137 test_bug1001011(): Verify that s.join([t]) is t for (s, t) in (str, str), (unicode, unicode), and (str, unicode). For (unicode, str), verify that it's *not* t (the result is promoted to unicode instead). Also verify that when t is a subclass of str or unicode that "the right thing" happens. 27 August 2004, 05:36:07 UTC
894c512 PyUnicode_Join(): Missed a spot where I intended a cast from size_t to int. I sure wish MS would gripe about that! Whatever, note that the statement above it guarantees that the cast loses no info. 27 August 2004, 05:08:36 UTC
269ab62 Fix the spelling of Fredrik Lundh's last name (unless there really is a "Fredrik Lund" who contributed the code in question). 27 August 2004, 05:00:22 UTC
12a4baf Remove unused method _OutputRedirectingPdb.resume 27 August 2004, 04:29:23 UTC
2de91ba - Removed redundant call to expandtabs in DocTestParesr. - Improvements to interactive debugging support: - Changed the replacement pdb.set_trace to redirect stdout to the real stdout *only* during interactive debugging; stdout from code continues to go to the fake stdout. - When the interactive debugger gets to the end of an example, automatically continue. - Use a replacement linecache.getlines that will return source lines from doctest examples; this makes the source available to the debugger for interactive debugging. - In test_doctest, use a specialized _FakeOutput class instead of a temporary file to fake stdin for the interactive interpreter. 27 August 2004, 02:07:46 UTC
8ce9f16 PyUnicode_Join(): Two primary aims: 1. u1.join([u2]) is u2 2. Be more careful about C-level int overflow. Since PySequence_Fast() isn't needed to achieve #1, it's not used -- but the code could sure be simpler if it were. 27 August 2004, 01:49:32 UTC
00f8da7 - Added DocTestParser.parse(), which parses a docstring into Examples and intervening text strings. - Removed DocTestParser.get_program(): use script_from_examples() instead. - Fixed bug in DocTestParser._INDENT_RE - Fixed bug in DocTestParser._min_indent - Moved _want_comment() to the utility function section 26 August 2004, 18:05:07 UTC
57d88e5 Move test_bug1001011() to string_tests.MixinStrUnicodeTest so that it can be used for str and unicode. Drop the test for "".join([s]) is s because this is an implementation detail (and doesn't work for unicode) 26 August 2004, 16:53:04 UTC
592ef61 Correct incorrect "it's" to "its". 26 August 2004, 10:40:12 UTC
e7edcb8 output_difference(): In fancy-diff cases, the way this split expected & actual output into lines created spurious empty lines at the ends of each. Those matched, but the fancy diffs had surprising line counts (1 larger than expected), and tests kept having to slam <BLANKLINE> into the expected output to account for this. Using the splitlines() string method with keepends=True instead accomplishes what was intended directly. 26 August 2004, 05:44:27 UTC
4085f03 Add missing executable option to DummyCommand. 26 August 2004, 05:44:02 UTC
66cb018 Whitespace normalization. 26 August 2004, 05:23:19 UTC
5b799c1 _do_a_fancy_diff(): Pay no attention to the ellipses behind the curtain. While a fancy diff can be confusing in the presence of ellipses, so far I'm finding (2-0-0) that it's much more a major aid in narrowing down the possibilities when an ellipsis-slinging test fails. So we no longer refuse to do a fancy diff just because of ellipses. This isn't ideal; it's just better. 26 August 2004, 05:21:59 UTC
f33683f Fine tune a word. 26 August 2004, 04:52:46 UTC
cf53355 Thinko repair. 26 August 2004, 04:50:38 UTC
a07bcd4 Reorg of exception section. Now that there are fewer details needing explanation, it's easier to push the remaining insufferably anal details into a "fine print" section at the bottom. 26 August 2004, 04:47:31 UTC
770acc2 Remove unnecessary line. 26 August 2004, 04:29:47 UTC
f4fd79c Small wording fixups. 26 August 2004, 03:11:56 UTC
ca9111e Changed OutputChecker.output_difference to expect an Example object, rather than an expected output string. This gives the output_difference method access to more information, such as the indentation of the example, which might be useful. 26 August 2004, 03:00:24 UTC
a89f88d Added REPORT_ONLY_FIRST_FAILURE flag, which supresses output after the first failing example in each test. 26 August 2004, 02:45:51 UTC
cc8a4f6 When building with --disable-toolbox-glue under Darwin, skip building any Mac-specific modules. Before all modules were compiled but would fail thanks to a dependence on the code included when Python was built without the compiler flag. Closes bug #991962. 26 August 2004, 01:44:07 UTC
71f55af Renamed UNIFIED_DIFF->REPORT_UDIFF; CONTEXT_DIFF->REPORT_CDIFF; and 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). 26 August 2004, 01:41:51 UTC
5662929 Shortened diff output for unified & context diffs 26 August 2004, 01:31:56 UTC
aacf083 - Changed the output of report_start() and report_unexpected_exception() 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 26 August 2004, 01:19:50 UTC
0e44807 Restored half of a \versionadded only half of which should have been deleted. 26 August 2004, 01:02:08 UTC
e8bbfe4 Patch #1015012. Improve markup and punctuation in libsocket.tex 26 August 2004, 00:51:16 UTC
3203efb Patch #1014930. Expose current parse location to XMLParser. 26 August 2004, 00:37:31 UTC
0d58e2b Minor improvements to the template code. * 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. 26 August 2004, 00:21:13 UTC
a6b6832 Added an "exc_msg" attribute to Example (containing the expected 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. 26 August 2004, 00:05:43 UTC
c5625ba Re-generate configure with recent configure.in change (for patch #1016224). 25 August 2004, 23:59:39 UTC
af16e8c Apply patch #1016224: configure.in change to allow build of _bsddb module on AIX 5.1. 25 August 2004, 23:55:59 UTC
19b1958 Only recognize the expected output as an exception if it *starts* with 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. 25 August 2004, 23:07:03 UTC
d2afee4 Fix docstring typo. 25 August 2004, 19:42:12 UTC
1792bfb Bypass peepholing of code with lineno tables having intervals >= 255. 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. 25 August 2004, 17:19:38 UTC
65d3c05 Fix typo in comment and add clarification. 25 August 2004, 15:15:56 UTC
e3a1b48 clean up markup for --executable description 25 August 2004, 14:01:32 UTC
87c98b2 Add various items 25 August 2004, 13:38:46 UTC
cae9e67 Patch #970015: Replace - by _ in version and release. 25 August 2004, 13:04:53 UTC
cf52524 Patch #970019: Include version and release in the BuildRoot. 25 August 2004, 13:00:34 UTC
9f5c0c4 Patch #736857, #736859: Add -e option to build_scripts. 25 August 2004, 11:37:43 UTC
be83737 Patch #798244: More urllib2 examples. 25 August 2004, 11:24:42 UTC
c11d6f1 Patch #1014992: Never return more than a line from readline. Will backport to 2.3. 25 August 2004, 10:52:58 UTC
8d494f3 Patch #1015021: Stop claiming that coerce can return None. Will backport to 2.3. 25 August 2004, 10:42:41 UTC
b92b7ed Back out 1.289, which breaks platforms needing addrinfo.h, and 1.293, 1.298, and 1.300, which have tried to fix this for specific platforms. 25 August 2004, 06:24:58 UTC
ef0a82b Simplify chains of conditional jumps. (Suggested by Neal Norwitz.) 25 August 2004, 03:18:29 UTC
08b07de Ah whoops, we didn't turn string into a package (thanks Neal!) 25 August 2004, 03:09:58 UTC
8bee761 PEP 292 classes Template and SafeTemplate are added to the string module. 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. 25 August 2004, 02:22:30 UTC
c885443 Stop producing or using OverflowWarning. PEP 237 thought this would 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. 25 August 2004, 02:14:08 UTC
1fa040b SF #1015517, get readline to compile with older compilers 25 August 2004, 01:20:18 UTC
eb619bb Fix for [ 1010677 ] thread Module Breaks PyGILState_Ensure(), and a test case. When booting a new thread, use the PyGILState API to manage the GIL. 24 August 2004, 22:24:08 UTC
8107ca4 Keep option parser from gobbling up the filename to be profiled and the 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. 24 August 2004, 14:26:43 UTC
fb15417 Fixed bug in DatagramHandler.send() 24 August 2004, 09:36:23 UTC
a12fa14 Incorporate review comments courtesy of Neal Norwitz: * 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. 24 August 2004, 04:34:16 UTC
fd2d1f7 SF Patch #1013667: Cleanup Peepholer Output * 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. 23 August 2004, 23:37:48 UTC
08158a0 Add Nick Coghlan for his patch solving an issue with joining string subclasses. 23 August 2004, 23:30:20 UTC
674f241 SF Patch #1007087: Return new string for single subclass joins (Bug #1001011) (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. 23 August 2004, 23:23:54 UTC
dd50cb7 The attempt to shut up deprecation warnings for doctest's own use of is_private in its tests failed if doctest.py was run directly. Now it works. 23 August 2004, 22:42:55 UTC
4de7c5c test_DocTestFinder(): This test failed when test_doctest was run directly, due to assuming a filename specific to running tests "the normal way". +ELLIPSIS to the rescue! 23 August 2004, 22:38:05 UTC
a7def72 Moved some test cases from doctest to test_doctest. 23 August 2004, 22:13:22 UTC
3fa8c20 Misc cleanups. 23 August 2004, 21:43:39 UTC
b6a04d6 debug_script(): I changed this in haste before to take out the use of 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. 23 August 2004, 21:37:56 UTC
31bd529 Patch #1014237: Consistently return booleans throughout. 23 August 2004, 20:42:35 UTC
07fda7e Updated the socketpair() docstring and documentation to explain that the default famility is AF_UNIX if defined for the platform, otherwise the default is AF_INET. 23 August 2004, 05:16:23 UTC
0fc8575 Removed unnecessary calls to signal() to ignore SIGPIPE. SIGPIPE is ignored in initsigs() inside pythonrun.c. 23 August 2004, 04:54:53 UTC
656f7e4 Removed redundant versionadded{} for NDIFF_DIFF. Virtually everything 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>. 23 August 2004, 00:26:42 UTC
8bd5cb3 Add version info 22 August 2004, 21:48:37 UTC
c234a52 Flush bz2 data even if nothing had been written so far. Fixes #1013882. Will backport to 2.3. 22 August 2004, 21:28:33 UTC
70aa1f2 Fix repr for negative imaginary part. Fixes #1013908. 22 August 2004, 21:09:15 UTC
f82a9de Start deferring to the LaTeX docs for details. I'd like to move the 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. 22 August 2004, 20:51:53 UTC
c6cbab0 Added NDIFF_DIFF option. 22 August 2004, 19:43:28 UTC
94607dd Whitespace normalization. 22 August 2004, 19:42:56 UTC
75dc5e1 Type in docstring. 22 August 2004, 17:50:45 UTC
c504915 _parse_example(): Simplified new code to preserve trailing spaces before final newline. Anything to get rid of "l" as a variable name <0.5 wink>. 22 August 2004, 17:34:58 UTC
2dd2a28 Add acknowledgements to ExitDialog. 22 August 2004, 17:10:12 UTC
e09bd93 Patch #997284: Allow pydoc to work with XP Themes (.manifest file) Will backport to 2.3. 22 August 2004, 16:13:26 UTC
ac37f3d Patch #1009389: Make __credits__ a Unicode object. 22 August 2004, 16:08:04 UTC
12237b3 Replace yield with sequence class. Fixes #1009803. 22 August 2004, 16:04:50 UTC
d3b0bab SF bug #1013760: Error in Chapter 4 of Tutorial Fit a nit. 22 August 2004, 15:24:33 UTC
07a349c Bugs fixed: - Test filenames sometimes had trailing .pyc or .pyo sufixes (when module __file__ did). - Trailing spaces spaces in expected output were dropped. New default failure format: - Separation of examples from file info makes examples easier to see - More vertical separation, improving readability - Emacs-recognized file info (also closer to Python exception format) 22 August 2004, 14:10:00 UTC
8ffe9ab Move msi from sandbox to Tools. 22 August 2004, 13:34:34 UTC
183403a 1. If user passes a non-existant filename on the commandline, just open a new file, don't raise a dialog. IDLEfork 954928. 2. Refactor EditorWindow.wakeup() to WindowList.ListedToplevel.wakeup() and clarify that the Toplevel of an EditorWindow is a WindowList.ListedToplevel. 3. Make a number of improvements to keyboard focus binding. Improve window raising, especially in the debugger. IDLEfork Bug 763524 (GvR list). 4. Bump idlever to 1.1a3 M Debugger.py M EditorWindow.py M FileList.py M NEWS.txt M PyShell.py M WindowList.py M idlever.py 22 August 2004, 05:14:32 UTC
back to top