summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Gave _ellipsis_match() an attractive new leading underscore.Tim Peters2004-08-201-4/+4
|
* Fix markup. versionchanged automatically adds a period, so remove the extra ↵Neal Norwitz2004-08-201-1/+1
| | | | one.
* Establish policies with respect to 2.3 compatibilty and treated specRaymond Hettinger2004-08-191-0/+9
| | | | updates as bugfixes.
* SF bug #1012315: weakref.WeakValueDictionary should override .has_key()Raymond Hettinger2004-08-191-31/+36
| | | | | | | | | * Check the found object for a None value during a contains/has_key lookup. Perhaps it will help the OP who is likely suffering from an occassional GC or threading object deletion after self.data is checked. * Complete the previous patch by removing the unnecessary indirection for weak dict iterators. Makes the code cleaner and more readable.
* Got rid of nooutput() (was used by DocTestCase.debug())Edward Loper2004-08-191-5/+1
| | | | | | It's redundant, since no output is written anyway: DebugRunner doesn't generate any output for failures and unexpected exceptions, and since verbose=False, it won't generate any output for non-failures either.
* Updated __all__ to include every non-underscored class, function, andEdward Loper2004-08-191-2/+30
| | | | | constant defined by the module (except the test*() functions, which should be integrated into test/test_doctest.py, anyway).
* Bug #1005737, #1007249: Fix several build problems and warningsHye-Shik Chang2004-08-191-0/+3
| | | | | found on old/legacy C compilers of HP-UX, IRIX and Tru64. (Reported by roadkill, Richard Townsend, Maik Hertha and Minsik Kim)
* Bug #1005737, #1007249: Fix several build problems and warningsHye-Shik Chang2004-08-195-42/+45
| | | | | found on legacy C compilers of HP-UX, IRIX and Tru64. (Reported by roadkill, Richard Townsend, Maik Hertha and Minsik Kim)
* Now that they've settled down, document doctest directives.Tim Peters2004-08-192-11/+83
|
* Port test_zipfile to unittest (patch #736962).Johannes Gijsbers2004-08-191-98/+98
|
* ellipsis_match(): Changed treatment of start- and end-of-string exactTim Peters2004-08-191-25/+35
| | | | matches to be symmetric. This makes the algorithm easier to understand.
* Patch #900727: Add Py_InitializeEx to allow embedding without signals.Martin v. Löwis2004-08-194-2/+20
|
* Patch #1011822: Display errno/strerror for inaccessible files.Martin v. Löwis2004-08-191-2/+7
|
* Replaced the ELLIPSIS implementation with a worst-case linear-time one.Tim Peters2004-08-192-23/+66
|
* ELLIPSIS implementation: an ellipsis couldn't match nothing if itTim Peters2004-08-192-4/+31
| | | | | | | appeared at the end of a line. Repaired that. Also noted that it's too easy to provoke this implementation into requiring exponential time, and especially when a test fails. I'll replace the implementation with an always-efficient one later.
* Rewrite test_order so as to be more "proper". Originally relied on anBrett Cannon2004-08-191-7/+13
| | | | | | error based on decorating with staticmethod too soon for the code to execute. This meant that if the test didn't pass it just errored out. Now if the test doesn't pass it leads to a failure instead.
* fix SF bug #1008690: Incorrect <link rel="index"> href in TutorialFred Drake2004-08-191-5/+8
| | | | | | | The make_head_and_body() function used a hardcoded value for the <link> element for the index; this patch causes the proper output filename to be captured during the transformation phase so it can be used during the page assembly phase.
* Remove commented definition of the MKHOWTO macro.Matthias Klose2004-08-181-1/+0
|
* Remove zero-byte gif files from generated html docsMatthias Klose2004-08-181-0/+1
|
* Expand tabs.Martin v. Löwis2004-08-181-1/+1
|
* Add support for FreeBSD 6.Hye-Shik Chang2004-08-188-4/+529
|
* Patch #995126: Correct directory size, and generate GNU tarfiles by default.Martin v. Löwis2004-08-183-3/+6
|
* Patch #914291: Restore locale while readline is running.Martin v. Löwis2004-08-181-0/+8
|
* Patch #1011144: Correct regex for coding decls.Martin v. Löwis2004-08-181-1/+1
|
* Patch #980082: Missing INCREF in PyType_Ready.Martin v. Löwis2004-08-181-1/+3
|
* Patch #800236: add HTTPResponse.getheaders().Martin v. Löwis2004-08-183-0/+12
|
* Patch #1006219: let inspect.getsource show '@' decorators and add tests forJohannes Gijsbers2004-08-183-2/+47
| | | | | this (which are rather ugly, but it'll have to do until test_inspect gets a major overhaul and a conversion to unittest). Thanks Simon Percivall!
* Patch #791776: Replace SMTPHandler.date_time with email.Utils.formatdate.Martin v. Löwis2004-08-182-16/+5
|
* Patch #764217: Add nametofont function, exists parameter.Martin v. Löwis2004-08-182-6/+43
|
* Move the bytecode optimizer upstream so that its results are saved in pycRaymond Hettinger2004-08-181-3/+6
| | | | | | | | | | | | | | files and not re-optimized upon import. Saves a bit of startup time while still remaining decoupled from the rest of the compiler. As a side benefit, handcoded bytecode is not run through the optimizer when new code objects are created. Hopefully, a handcoder has already created exactly what they want to have run. (Idea suggested by Armin Rigo and Michael Hudson. Initially avoided because of worries about compiler coupling; however, only the nexus point needed to be moved so there won't be a conflict when the AST branch is loaded.)