summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
...
* SF 742860: WeakKeyDictionary __delitem__ uses iterkeysTim Peters2003-05-252-5/+52
| | | | | | | | | | | | | | | | | Someone review this, please! Final releases are getting close, Fred (the weakref guy) won't be around until Tuesday, and the pre-patch code can indeed raise spurious RuntimeErrors in the presence of threads or mutating comparison functions. See the bug report for my confusions: I can't see any reason for why __delitem__ iterated over the keys. The new one-liner implementation is much faster, can't raise RuntimeError, and should be better-behaved in all respects wrt threads. New tests test_weak_keyed_bad_delitem and test_weak_keyed_cascading_deletes fail before this patch. Bugfix candidate for 2.2.3 too, if someone else agrees with this patch.
* Improved the RESTART annotation in the shell window when the userKurt B. Kaiser2003-05-241-0/+9
| | | | | restarts the shell while it is generating output. Also improved annotation when user repeatedly hammers the Ctrl-F6 restart.
* Fix a bug in Rev 1.10 - Windows can't handle a leading ':' if theKurt B. Kaiser2003-05-243-3/+12
| | | | | | user's PYTHONPATH is empty (though Linux can). Modified Files: idle idle.py idle.pyw
* 1. Stake Freddy.Kurt B. Kaiser2003-05-244-64/+57
| | | | | | | | | | | | | e.g. further improve subprocess interrupt, exceptions, and termination. 2. Remove the workarounds in PyShell.py and ScriptBinding.py involving interrupting the subprocess prior to killing it, not necessary anymore. 3. Fix a bug introduced at PyShell Rev 1.66: was getting extra shell menu every time the shell window was recreated. M PyShell.py M ScriptBinding.py M rpc.py M run.py
* SF bug 705231: Assertion failed, python aborts.Tim Peters2003-05-241-0/+17
| | | | | | | float_pow(): Don't let the platform pow() raise -1.0 to an integer power anymore; at least glibc gets it wrong in some cases. Note that math.pow() will continue to deliver wrong (but platform-native) results in such cases.
* 'sum' is no longer a good variable name. Use 'total' instead.Raymond Hettinger2003-05-241-3/+3
|
* Convert tcl_version to str before comparing. Fixes #729317.Martin v. Löwis2003-05-241-1/+2
|
* iteritems() should not have been used for self.timeout which changes during ↵Raymond Hettinger2003-05-231-1/+1
| | | | the loop.
* Port test_mimetools.py to PyUnit and add various tests.Walter Dörwald2003-05-222-23/+51
| | | | From SF patch #736962.
* [Bug #741171] pdb crashes when enabling a non-existing breakpointAndrew M. Kuchling2003-05-221-2/+22
| | | | | | | | | Check the supplied breakpoint number more carefully. (Incompatibility: before this patch, "enable -1" would enable the last breakpoint on the list; now -1 is not a legal ID. Not sure anyone would ever use negative indices...) 2.2 bugfix candidate, assuming making -1 illegal isn't considered a problem.
* Walter's last checkin also needs to work on doubles.Neal Norwitz2003-05-221-7/+3
| | | | | * Move new test_byteswap into FPTest. * Remove extra lines at end of file.
* test_byteswap() fails on alphas, because treating the byte swapped bitWalter Dörwald2003-05-221-0/+17
| | | | | | | | | | patterns as floats/doubles results in floating point exceptions. Fix this by implementing a separate test_byteswap() for the floating point tests. This new test compares the tostring() values of both arrays instead of the arrays themselves. Discovered by Neal Norwitz.
* Fix for SF [ 734869 ] Lambda functions in list comprehensionsJeremy Hylton2003-05-212-0/+2
| | | | | | The compiler was reseting the list comprehension tmpname counter for each function, but the symtable was using the same counter for the entire module. Repair by move tmpname into the symtable entry. Bugfix candidate.
* Added a test for the fix of SF bug #658233, where continuation linesBarry Warsaw2003-05-201-12/+52
| | | | | | | | in .po metadata caused a crash. Also, removed some unnecessary code. Backport candidate.
* GNUTranslations._parse(): Fix SF bug #658233, where continuation linesBarry Warsaw2003-05-201-4/+9
| | | | | | in .po metadata caused a crash. Backport candidate.
* 'Progress' doesn't exists, causing 'from EasyDialogs import *' to failJust van Rossum2003-05-201-1/+1
|
* SF 740055: optional argument protocol in shelve.open is ignoredRaymond Hettinger2003-05-201-1/+1
| | | | | * added the missing parameter * put optional parameters in correct positional order
* SF bug 735293: Command line timeit.py sets sys.path badlyRaymond Hettinger2003-05-201-0/+5
| | | | | Paul Moore's patch to have timeit.py check the current directory for imports (instead of the directory for Lib/timeit.py).
* Fix race exposed by 2.4 GHz XP box: Don't tear down PyShell untilKurt B. Kaiser2003-05-191-5/+11
| | | | | | | subprocess polling has terminated. Tk callit gets unhappy if it can't find the function 'after' scheduled to run. M PyShell.py
* * Correct Sniffer doc to correspond to the implementation.Skip Montanaro2003-05-192-7/+24
| | | | | * Add optional delimiters arg to Sniffer.sniff() which restricts the set of candidate field delimiters.
* Let Python inform the user what went wrong with the import.Kurt B. Kaiser2003-05-193-3/+3
| | | | | Modified Files: idle idle.py idle.pyw
* Consider \U-escapes in raw-unicode-escape. Fixes #444514.Martin v. Löwis2003-05-181-0/+7
|
* Fix array.array.insert(), so that it treats negative indices asWalter Dörwald2003-05-181-0/+24
| | | | | being relative to the end of the array, just like list.insert() does. This closes SF bug #739313.
* To be on the safe side, backed out any questionable iteritem changes and set ↵Brett Cannon2003-05-181-2/+2
| | | | back to item calls.
* Whitespace NormalizationKurt B. Kaiser2003-05-181-29/+29
|
* Whitespace NormalizationKurt B. Kaiser2003-05-184-23/+23
| | | | | | Modified Files: config-extensions.def config-highlight.def config-keys.def config-main.def
* Add another error case to the insert test.Walter Dörwald2003-05-181-0/+1
|
* Port test_array and test_winsound to PyUnit. Enhance tests for arrayWalter Dörwald2003-05-183-380/+920
| | | | | | (code coverage for Modules/arraymodule.c is at 91%) From SF patch #736962.
* Show Freddy the mirrorKurt B. Kaiser2003-05-171-7/+15
| | | | i.e. improve subprocess exit paths and exeception reporting
* User cStringIO instead of StringIO.Raymond Hettinger2003-05-171-2/+2
|
* Revert some changes back to dict.items made in a previous patch.Brett Cannon2003-05-171-2/+2
|
* datetime.timedelta is now subclassable in Python. The new test showsTim Peters2003-05-171-0/+31
| | | | | | | | one good use: a subclass adding a method to express the duration as a number of hours (or minutes, or whatever else you want to add). The native breakdown into days+seconds+us is often clumsy. Incidentally moved a large chunk of object-initialization code closer to the top of the file, to avoid worse forward-reference trickery.
* Added icon for IDLE on OS XTony Lownds2003-05-172-0/+1
|
* minor fix, jython-only. Don't asssume stdout to save is the ur-stdout.Samuele Pedroni2003-05-171-1/+2
|
* datetime.datetime and datetime.time can now be subclassed in Python. Brr.Tim Peters2003-05-171-31/+131
|
* Nigel Rowe's PatchKurt B. Kaiser2003-05-171-5/+5
| | | | | | | [ 735527 ] Re Bug [ 678325 ] ParenMatching Missing AutoIndent AutoIndent was merged with EditorWindow, this patch corrects the references in ParenMatch.
* Noam Raphael's patch.Kurt B. Kaiser2003-05-175-14/+52
| | | | | | | | | | | | | | | | SF Patch 686254 "Run IDLEfork from any directory without set-up" Allows IDLE to run when not installed and cwd is not the IDLE directory. I took the liberty of moving it to the startup scripts since once IDLEfork is again a part of Python it will be superfluous and I don't want it to be forgotten. But it is very useful for those using IDLEfork standalone! M CREDITS.txt M NEWS.txt M idle M idle.py M idle.pyw
* simpler temp dir cleanupSkip Montanaro2003-05-171-8/+6
|
* beefed up version: jython support, covers now fixed differences between ↵Samuele Pedroni2003-05-171-11/+105
| | | | CPython/Jython.
* test_subclass_date(): Beefed this up, to check that new instanceTim Peters2003-05-171-2/+28
| | | | | | | attributes and methods work, that new arguments can be passed to the constructor, and that inherited methods and attrs still work. Added XXX comments about what to do when datetime becomes usably subclassable too (it's not yet).
* Include module name in doctest summary.Raymond Hettinger2003-05-171-1/+1
|
* Use test_support.run_doctest()Raymond Hettinger2003-05-171-3/+3
|
* Provide a clue that the doctests have run.Raymond Hettinger2003-05-171-1/+3
|
* Minor cleanups.Raymond Hettinger2003-05-161-5/+1
|
* Remove usage of re module from encodings package search function.Marc-André Lemburg2003-05-161-4/+19
|
* test_fileno(): Skip this test on Windows.Tim Peters2003-05-161-13/+17
|
* More fixes according to SF 549151:Guido van Rossum2003-05-161-4/+8
| | | | | | | | - When redirecting, always use GET. This is common practice and more-or-less sanctioned by the HTTP standard. - Add a handler for 307 redirection, which becomes an error for POST, but a regular redirect for GET and HEAD.
* Don't replace an empty line with "pass" when symbol == "eval", whereGuido van Rossum2003-05-161-1/+2
| | | | | "pass" isn't valid syntax. Reported by Samuele Pedroni on python-dev (May 12, 2003).
* 1. When a module is run from an EditorWindow, if its directory is not inKurt B. Kaiser2003-05-152-5/+19
| | | | | | | | | | | | | | sys.path, prepend it. This allows the module to import other modules in the same directory. Do the same for a script run from the command line. 2. Tweak the IDLE usage message a bit more. SF Bug 706860 (closed) SF Patch 686254 (reject specific solution) SF Patch 507327 (similar) M PyShell.py M ScriptBinding.py
* 1. Add a command line switch to run without the subprocessKurt B. Kaiser2003-05-152-18/+33
| | | | | | | | | | 2. Remove the shell menu and associated bindings when running without the subprocess. 3. Update the IDLE Help and usage text. 4. Update display_port_binding_error to suggest using -n M PyShell.py M help.txt