summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Patch #648998: test_commands ACL patchJason Tishler2002-12-051-0/+1
| | | | | | | | | | | | | | Although motived by Cygwin, this patch will prevent test_commands from failing on Unixes that support ACLs. For example, the following is an excerpt from the Solaris ls manpage: ... -rwxrwxrwx+ 1 smith dev 10876 May 16 9:42 part2 The plus sign indicates that there is an ACL associated with the file. ...
* Add a Cygwin skip mentioned by Jason Tishler.Tim Peters2002-12-051-1/+1
|
* Patch #551977: Regression exceptions for cygwinJason Tishler2002-12-051-0/+22
| | | | | | This patch updates regrtest.py to understand which tests are normally skipped under Cygwin. The list of tests was verified with the Cygwin Python maintainer.
* Replace BadInternalCall with TypeError. Add a test case. Fix whitespace.Raymond Hettinger2002-12-041-0/+7
| | | | | | | Just van Rossum showed a weird, but clever way for pure python code to trigger the BadInternalCall. The C code had assumed that calling a class constructor would return an instance of that class; however, classes that abuse __new__ can invalidate that assumption.
* Rearrange test_socket_ssl so that a skip is expected iff the networkTim Peters2002-12-043-28/+35
| | | | resource isn't enabled or the socket module doesn't support ssl.
* Enable Check ModuleKurt B. Kaiser2002-12-031-5/+2
|
* Don't use Alt-Fn or Ctrl-Fn keys, reserved for desktop changes in Unix.Kurt B. Kaiser2002-12-031-17/+11
| | | | | Zoom becomes Alt-H "height" Check Module becomes Alt-X "syntax"
* Some more expected skips on OSX.Guido van Rossum2002-12-031-0/+3
|
* Lose references to knee (no longer exists) and pyclbr (has its ownGuido van Rossum2002-12-031-2/+0
| | | | test suite now).
* Get rid of 1.5.2 compatibility hack. :-)Guido van Rossum2002-12-031-8/+0
|
* Adding Python <= 2.2 support back in.Marc-André Lemburg2002-12-031-3/+10
|