summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Add more sophistication to the comparison between pyclbr output andGuido van Rossum2002-12-031-42/+36
| | | | | | real module, by filtering out aliased methods. This, combined with the recent fixes to pyclbr, make it possible to enable more tests with fewer exceptions.
* Another big update, fixing all known bugs related to nesting functionsGuido van Rossum2002-12-031-50/+80
| | | | | and classes. Also add a mini main program that dumps the results for a given file or module.
* In class bsdTableDB, add class variables db and env (set to None) toGuido van Rossum2002-12-021-0/+5
| | | | | prevent close() called from __del__ from bombing out when __init__() fails early.
* Fix typo in except clause (_db should be _bsddb).Guido van Rossum2002-12-021-1/+1
|
* Moderately heavy reorganization of pyclbr to fix package-related bugs.Guido van Rossum2002-12-022-67/+99
| | | | | | | | | | | | | | | | | | | | - The _modules cache now uses the full module name. - The meaning of the (internal!!!) inpackage argument is changed: it now is the parent package name, or None. readmodule() doesn't support this argument any more. - The meaning of the path argument is changed: when inpackage is set, the module *must* be found in this path (as is the case for the real package search). - Miscellaneous cleanup, e.g. fixed __all__, changed some comments and doc strings, etc. - Adapted the unit tests to the new semantics (nothing much changed, really). Added some debugging code to the unit tests that print helpful extra info to stderr when a test fails (interpreting the test failures turned out to be hard without these).