summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* - Get the database from a different place.Jack Jansen2003-05-291-4/+7
| | | | | - Added support for multi-line descriptions. Doesn't look nice yet in Package Manager.
* _make_boundary(): Fix for SF bug #745478, broken boundary calculationBarry Warsaw2003-05-292-3/+7
| | | | | | | | | in some locales. This code simplifies the boundary algorithm to use randint() which is what we wanted anyway. Bump package version to 2.5.3. Backport candidate for Python 2.2.3
* I saw errors from _fileobject.__del__ about missing self._sock. ThisGuido van Rossum2003-05-291-1/+5
| | | | | can happen if __init__ doesn't complete. Fix it by adding a try/except to __del__.
* Remove debug code from weakref_segfault().Guido van Rossum2003-05-291-2/+0
|
* Add testcase for SF 742911.Guido van Rossum2003-05-291-0/+24
|
* Fix typo so that the test actually calls the tested function.Raymond Hettinger2003-05-291-1/+1
|
* Test ability to handle various type of iterators.Raymond Hettinger2003-05-291-4/+188
|
* Test script changed.Greg Ward2003-05-291-6/+5
|
* Renamed test_errors() to test_setparameters() and completely rewrote itGreg Ward2003-05-291-30/+54
| | | | | | | to test the new setparameters() interface. Modified play_sound_file() to print the elapsed time taken to play the test sample (to the nearest 0.1 sec).
* Order and number of arguments to setparameters() has changed.Greg Ward2003-05-291-24/+23
| | | | Rename 'a' (the audio device) to 'dsp' everywhere.
* - Added a scheme whereby pimp can update itself, by importing a moduleJack Jansen2003-05-281-11/+49
| | | | | | | pimp_update if it exists. Upped the version number to indicate this. Fixes #731626. - Added -V (print version) and -u (specify database URL) options when run as a command line tool.
* * Beefed-up testsRaymond Hettinger2003-05-281-14/+45
| | | | | * Allow tuple re-use * Call tp_iternext directly
* Wrap the cursor functions with dbutils.DeadlockWrap to deal with theGregory P. Smith2003-05-281-2/+2
| | | | expected DBLockDeadLockErrors.
* Added a config-main General option to delete sys.exitfunc. The defaultKurt B. Kaiser2003-05-283-8/+24
| | | | | | | | is not to do that. VPython and student environment support. M PyShell.py M config-main.def M run.py
* Add more tests from RFC 2202.Jeremy Hylton2003-05-271-2/+55
|
* Fixup bare try/except.Raymond Hettinger2003-05-271-1/+1
|
* Whitespace NormalizationKurt B. Kaiser2003-05-263-7/+7
| | | | Modified Files: PyShell.py ScriptBinding.py buildapp.py
* 1. SF Bug 661676Kurt B. Kaiser2003-05-262-8/+11
| | | | | | | | | | | The default font is not highlighted in the Options dialog when IDLEfork is first installed. 2. Reduce default font to 10 pt and increase default window height to give a better initial impression on Windows. M config-main.def M configDialog.py
* Fix SF bug #735694, Pydoc.py fixes linksNeal Norwitz2003-05-261-5/+6
| | | | | Modified the patch some. Fixed invalid link in UNICODE (to STRING). Also updates some references.
* Bruce Sherwood RFE/PatchKurt B. Kaiser2003-05-263-23/+60
| | | | | | | | | | | | | | SF 661318 Adds autosave capability to IDLE and IDLE configuration dialog. User can Run/F5 without explicit save dialog. The default is to require the user to confirm the save. M ScriptBinding.py M config-main.def M configDialog.py
* Added a --python option, which sets the python to be used in the #! lineJack Jansen2003-05-251-1/+9
| | | | in the bootstrap script of the applet.
* Fleshed out WeakKeyDictionary.__delitem__ NEWS to cover issues raised onTim Peters2003-05-251-2/+10
| | | | | | | | | Python-Dev. Fixed typos in test comments. Added some trivial new test guts to show the parallelism (now) among __delitem__, __setitem__ and __getitem__ wrt error conditions. Still a bugfix candidate for 2.2.3 final, but waiting for Fred to get a chance to chime in.
* 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.