summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Updated.Kurt B. Kaiser2002-12-201-11/+24
|
* If Edit window has not been saved, offer to save if user tries to Run orKurt B. Kaiser2002-12-191-14/+21
| | | | Check the module.
* Expand log() tests to include long integers.Raymond Hettinger2002-12-181-0/+2
|
* M ColorDelegator.pyKurt B. Kaiser2002-12-173-22/+40
| | | | | | | | | | | | | M PyShell.py M ScriptBinding.py 1. Update ScriptBinding.py to highlight a syntax error in the Edit window, and place the cursor on the error. Add a syntax check to the Run Script event instead of waiting until the script tries to run and raises a syntax error in the shell, forcing the user to navigate back to the Edit window to fix it. 2. Modify tag_config's appropriately in PyShell.py and ColorDelegator.py 3. Some minor clean-up in ScriptBinding.py
* No point in warning about needing re module; remove helpful messageAndrew M. Kuchling2002-12-171-4/+1
|
* Fix comment typoAndrew M. Kuchling2002-12-171-1/+1
|
* This is Richie Hindle's patchMichael W. Hudson2002-12-172-0/+315
| | | | | | | | [ 643835 ] Set Next Statement for Python debuggers with a few tweaks by me: adding an unsigned or two, mentioning that not all jumps are allowed in the doc for pdb, adding a NEWS item and a note to whatsnew, and AuCTeX doing something cosmetic to libpdb.tex.
* Update doc for getboolean() to match code (ie, returning True/False)Neal Norwitz2002-12-171-8/+8
| | | | Convert remaining uses of 1/0 to True/False
* In Shell:Kurt B. Kaiser2002-12-161-0/+4
| | | | | 1. If a tab is entered at the prompt, allow it to be backspaced away. 2. Eliminate the beep when hitting <enter> at the prompt.
* Made this a little more compatible w/ the sandbox version, which isTim Peters2002-12-161-2/+2
| | | | still needed to test the Python implementatino.
* datetime escapes the sandbox. The Windows build is all set. I leave itTim Peters2002-12-161-0/+2128
| | | | | to others to argue about how to build it on other platforms (on Windows it's in its own DLL).
* Fixing bugGustavo Niemeyer2002-12-161-2/+2
| | | | | | | | | | | | | | | | | | [#448679] Left to right * Python/compile.c (com_dictmaker): Reordered evaluation of dictionaries to follow strict LTR evaluation. * Lib/compiler/pycodegen.py (CodeGenerator.visitDict): Reordered evaluation of dictionaries to follow strict LTR evaluation. * Doc/ref/ref5.tex Documented the general LTR evaluation order idea. * Misc/NEWS Documented change in evaluation order of dictionaries.
* Applying patchGustavo Niemeyer2002-12-162-7/+12
| | | | | | | | | | | | | | | | | | | | | [#636769] Fix for major rexec bugs * Lib/rexec.py (FileBase): Added 'xreadlines' and '__iter__' to allowed file methods. (FileWrapper.__init__): Removed unnecessary self.f variable, which gave direct access to the file object. (RExec): Added 'xreadlines' and '_weakref' to allowed modules. (RExec.r_open): Convert string subclasses to a real string classes before doing comparisons with mode parameter. * Lib/ihooks.py (BasicModuleImporter.import_module/reload/unload): Convert the module name to a real string before working with it. (ModuleImporter.import_module/import_it/reload): Convert the module name to a real strings before working with it. * Misc/NEWS Document the change.
* M EditorWindow.pyKurt B. Kaiser2002-12-162-5/+8
| | | | | | | | | | M PyShell.py Idlefork SF Bug 440383 - IDLE goes into beep loop Fix loop in EditorWindow.newline_and_indent_event() and in addition fix submission of >>> prompt to PyParse.Parser Eliminate extra attribute EditorWindow.auto_indent
* Apply SF patch 652930: Add optional base argument to math.log(x[, base]).Raymond Hettinger2002-12-141-0/+1
|
* M Debugger.pyKurt B. Kaiser2002-12-143-77/+75
| | | | | | | | | | | | | | | | | | | | | | | M IOBinding.py M PyShell.py * Could not remove last set of saved breakpoints from a file * Starting with empty edit window, could not load a file * Multiple adjacent breakpoints were saved as one breakpoint * Storing breakpoints whenever a file is closed can get them out of synch with the saved version of a file. Only store them when the file is saved. * Add comment on current limitations on file editing in the presence of breakpoints. * Replace get_current_breaks() with update_breakpoints(), add an update to PyShellEditorWindow.breakpoints, which is the master breakpoint data structure, and which is used to reload the subprocess debugger. * Revert Debugger.Debugger.load_breakpoints() to use editwin.breakpoints. It is easier to debug the debugger if the breakpoint list in IDLE is identical to the list in the subprocess debugger and is transferred when the subprocess debugger is restarted, because this list can be easily queried. * Cleanup some linespacing and comments in IOBinding.py
* Tighten the tests for assignment to __bases__: disallow empty tuple.Guido van Rossum2002-12-131-0/+8
|
* Prevent debugger from stepping into Idle rpc codeChui Tey2002-12-121-5/+17
|
* Patch #536661: Improve performance of splitext. Add test_macpath.Martin v. Löwis2002-12-126-42/+95
|
* Patch #650653: Raise always value error if the table is not 256 bytes long.Martin v. Löwis2002-12-121-0/+2
|
* M CallTipWindow.pyKurt B. Kaiser2002-12-122-15/+34
| | | | | | | | M CallTips.py Calltip fetch was erroring when an Edit window was used without a Shell. Also, fix CallTipWindow.py so test code will run and add a comment about a bug which causes the calltip window to override all others.
* Change issubclass() so that recursive tuples (directly or indirectlyWalter Dörwald2002-12-121-1/+18
| | | | | | containing class objects) are allowed as the second argument. This makes issubclass() more similar to isinstance() where recursive tuples are allowed too.
* Patch #551960: Add check for setrlimit() supportJason Tishler2002-12-121-4/+12
| | | | | | | | | | test_resource calls resource.setrlimit() to change the file size limits. This fails on Cygwin, which supports setrlimit() and getrlimit(), just not changing that particular setting. (The same would apply to any other platform that has those functions but not that particular feature.) Since getrlimit() works and setrlimit() can be used for other reasons, a check for ValueError was added to that part of the test.
* Patch to make _codecs a builtin module. This is necessary sinceMarc-André Lemburg2002-12-121-5/+15
| | | | | | | Python 2.3 will support source code encodings which rely on the builtin codecs being available to the parser. Remove struct dependency from codecs.py
* Hardcode the recognized whitespace characters to the US-ASCII whitespaceGreg Ward2002-12-121-3/+12
| | | | chars. See the comment for rationale.
* Enhance issubclass() and PyObject_IsSubclass() so that a tuple isWalter Dörwald2002-12-121-0/+9
| | | | | | | | | | | supported as the second argument. This has the same meaning as for isinstance(), i.e. issubclass(X, (A, B)) is equivalent to issubclass(X, A) or issubclass(X, B). Compared to isinstance(), this patch does not search the tuple recursively for classes, i.e. any entry in the tuple that is not a class, will result in a TypeError. This closes SF patch #649608.
* Patch #651621, approved by MvL.Just van Rossum2002-12-121-2/+9
| | | | | | | | | | | | | | | | This patch allows ZipFile.writestr() to be called with an archive file name instead of a ZipInfo instance: z = ZipFile("myarchive.zip", "w") z.writestr("foo/baz/file.ext", data) z.close() I found the old writestr() method very inconvenient for simple (but common) things. If called with a file name instead of a ZipInfo instance, the date_time is set to the current date/time, which makes sense to me for anonymous data.
* Tweak generation of unicode_whitespace_trans -- clearer, moreGreg Ward2002-12-111-2/+3
| | | | efficient. Suggested by MAL.
* Clean-up test class for DictMixin.Raymond Hettinger2002-12-111-2/+6
|
* Update to reflect current implementation.Kurt B. Kaiser2002-12-111-78/+76
|
* Rework the command line interface, incorporating the shell/editKurt B. Kaiser2002-12-111-72/+136
| | | | | | configuration selection. Rework the usage message to match. Also some minor code polishing.
* Added test_ossaudiodev to expected skips on Windows.Tim Peters2002-12-101-0/+1
|
* Aesthetic tweakery: factor read_sound_file() out of play_sound_file().Greg Ward2002-12-101-5/+9
|
* Initial revision is rev 1.8 of test_linuxaudiodev.py, withGreg Ward2002-12-101-0/+89
| | | | the obvious s/linuxaudiodev/ossaudiodev/ change made.
* Upgrade to Tix-8.1.4 from Mike Clarkson (the maintainer)Neal Norwitz2002-12-101-3/+22
|
* SF 548651: Fix the METH_CLASS implementation.Tim Peters2002-12-091-4/+4
| | | | | | | Most of these patches are from Thomas Heller, with long lines folded by Tim. The change to test_descr.py is from Guido. See the bug report. Not a bugfix candidate -- METH_CLASS is new in 2.3.
* Add test_unicode() to ensure that 1) textwrap doesn't crash on unicodeGreg Ward2002-12-091-0/+12
| | | | | input, and 2) unicode input means unicode output. This closes SF bug #622831.
* Added test_initial_whitespace() to ensure that SF bug #622849 is fixed.Greg Ward2002-12-091-3/+13
| | | | | | Change LongWordTestCase.setUp() -- remove leading whitespace from text string. Comment fix.
* Fix SF bug #622849: in _wrap_chunks(), ensure that leading whitespace inGreg Ward2002-12-091-2/+3
| | | | the input string is always preserved.
* Fix SF bug #622831 (I think): add unicode_whitespace_trans classGreg Ward2002-12-091-1/+8
| | | | | | attribute, and modify _munge_whitespace() to recognize Unicode strings and use unicode_whitespace_trans to munge them. Still need to add a test to make sure I've really fixed the bug.
* self.binary -> self._binary to remove it from the public interface -Skip Montanaro2002-12-081-2/+2
| | | | suggestion by Raymond Hettinger.
* Add support for binary pickles to the shelve module. In some situationsSkip Montanaro2002-12-082-8/+60
| | | | | | | | this can result in significantly smaller files. All classes as well as the open function now accept an optional binary parameter, which defaults to False for backward compatibility. Added a small test suite, updated the libref documentation (including documenting the exported classes and fixing a few other nits) and added a note about the change to Misc/NEWS.
* Add another test which exercises the whole suite with aRaymond Hettinger2002-12-071-0/+14
| | | | heapsort and verifies the result against list.sort().
* Fix typo in abstract.c which caused __rpow__ to not be invoked.Raymond Hettinger2002-12-071-0/+5
| | | | | Added related testcase. Closes SF bug #643260.
* Clarify and speedup test.Raymond Hettinger2002-12-071-2/+3
|
* Cleaned up test (removing bogus argument list).Raymond Hettinger2002-12-071-2/+2
|
* Remove assumption that cls is a subclass of dict.Raymond Hettinger2002-12-071-3/+3
| | | | Simplifies the code and gets Just van Rossum's example to work.
* M PyShell.pyKurt B. Kaiser2002-12-062-20/+39
| | | | | | | | | | | | | 1. Format and print exceptions raised in user code. M rpc.py 1. Additional debug messages in rpc.py 2. Move debug message enable switch from SocketIO to Client and Server to allow separate activation. 3. Add indication of origin (client or server) to debug message 4. Add sequence number to appropriate debug messages 5. Pass string exception arg as a string rather than a tuple.
* Patch #649184: Update to tix-8.1.4 RC3.Martin v. Löwis2002-12-061-11/+65
|
* The final tweaks before closingMichael W. Hudson2002-12-051-0/+4
| | | | | | [ 633152 ] list slice ass ignores subtypes of list Allow arbitrary sequences on the RHS of extended slices.