summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Type in docstring.Tim Peters2004-08-221-1/+1
|
* _parse_example(): Simplified new code to preserve trailing spaces beforeTim Peters2004-08-221-12/+8
| | | | final newline. Anything to get rid of "l" as a variable name <0.5 wink>.
* Add acknowledgements to ExitDialog.Martin v. Löwis2004-08-221-1/+9
|
* Patch #997284: Allow pydoc to work with XP Themes (.manifest file)Martin v. Löwis2004-08-221-2/+10
| | | | Will backport to 2.3.
* Patch #1009389: Make __credits__ a Unicode object.Martin v. Löwis2004-08-221-1/+1
|
* Replace yield with sequence class. Fixes #1009803.Martin v. Löwis2004-08-221-8/+21
|
* SF bug #1013760: Error in Chapter 4 of TutorialRaymond Hettinger2004-08-221-1/+1
| | | | Fit a nit.
* Bugs fixed:Jim Fulton2004-08-222-80/+160
| | | | | | | | | | | | | | | - 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)
* Move msi from sandbox to Tools.Martin v. Löwis2004-08-226-0/+4276
|
* 1. If user passes a non-existant filename on the commandline, just openKurt B. Kaiser2004-08-227-47/+40
| | | | | | | | | | | | | | | | | 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
* _ellipsis_match(): Removed special-casing of "...\n". The semanticsTim Peters2004-08-222-32/+5
| | | | | | are non-obvious either way because the newline character "is invisible", but it's still there all the same, and it's easier to explain/predict if that reality is left alone.
* sf #1009373, #1005936. fix underscores in index entries in PDF files.Neal Norwitz2004-08-212-3/+7
| | | | | | | I couldn't test this, but it didn't break anything and the patch reported fixed the problem. Bugfix candidate.
* Patch #880621: the last message of a Babyl mailbox ends in '\037' instead ofJohannes Gijsbers2004-08-211-1/+1
| | | | | '\037\014\n' (see http://quimby.gnus.org/notes/BABYL) so look for that as well, so that applications won't get '\037' as the last line of the last message.
* Patch #1011123: Use urllib.quote() instead of cgi.escape() for encoding theJohannes Gijsbers2004-08-211-2/+3
| | | | | href attribute in list_directory(). This fixes the links for legal Unix filenames such as 'a"b'.
* Patch 1012740: cStringIO's truncate doesn'tTim Peters2004-08-213-2/+9
| | | | | | | | | | | | | truncate() left the stream position unchanged, which meant the "truncated" data didn't go away: >>> io.write('abc') >>> io.truncate(0) >>> io.write('xyz') >>> io.getvalue() 'abcxyz' Patch by Dima Dorfman.
* Fix grammar, spotted by Hye-Shik ChangNeal Norwitz2004-08-201-1/+1
|
* Correct argument specifications of load_compiled and load_source: the fileJohannes Gijsbers2004-08-201-2/+2
| | | | argument is optional on both (the format string is "ss|O!").
* Quote # as \# to make lib compile again.Johannes Gijsbers2004-08-201-1/+1
|
* Bump minimum Python version to 2.1. Fixes #1009803.Martin v. Löwis2004-08-201-4/+2
|
* Replace tricky and/or with straight-forward if:else:Martin v. Löwis2004-08-201-1/+5
|
* Fail fatally if strdup fails.Martin v. Löwis2004-08-201-0/+4
|
* Remove debug print.Martin v. Löwis2004-08-201-1/+0
|
* Whitespace normalization.Tim Peters2004-08-207-17/+17
|
* Stab at SF 1010777: test_queue fails occasionallyTim Peters2004-08-201-14/+53
| | | | | | | | | | | | | | | | | | | | | | | | test_queue has failed occasionally for years, and there's more than one cause. The primary cause in the SF report appears to be that the test driver really needs entirely different code for thread tests that expect to raise exceptions than for thread tests that are testing non-exceptional blocking semantics. So gave them entirely different code, and added a ton of explanation. Another cause is that the blocking thread tests relied in several places on the difference between sleep(.1) and sleep(.2) being long enough for the trigger thread to do its stuff sot that the blocking thread could make progress. That's just not reliable on a loaded machine. Boosted the 0.2's to 10.0's instead, which should be long enough under any non-catastrophic system conditions. That doesn't make the test take longer to run, the 10.0 is just how long the blocking thread is *willing* to wait for the trigger thread to do something. But if the Queue module is plain broken, such tests will indeed take 10 seconds to fail now. For similar (heavy load) reasons, changed threaded-test termination to be willing to wait 10 seconds for the signal thread to end too.
* Semantic-neutral format and comment changes.Tim Peters2004-08-201-14/+16
|
* Try to improve grammar and use versionaddedNeal Norwitz2004-08-201-1/+2
|