summaryrefslogtreecommitdiffstats
path: root/Lib/rlcompleter.py
Commit message (Collapse)AuthorAgeFilesLines
* - #2250: Exceptions raised during evaluation of names in rlcompleter'sGeorg Brandl2008-05-111-1/+4
| | | | ``Completer.complete()`` method are now caught and ignored.
* #2220: handle matching failure more gracefully.Georg Brandl2008-03-061-1/+1
|
* Patch #1472854: make the rlcompleter.Completer class usable on non-Georg Brandl2006-04-301-2/+6
| | | | UNIX platforms.
* Fix a bunch of typos in documentation, docstrings and comments.Walter Dörwald2003-10-201-1/+1
| | | | (From SF patch #810751)
* Remove uses of the string and types modules:Walter Dörwald2002-06-031-2/+2
| | | | | | | | | | | | | | | | | | | | | | x in string.whitespace => x.isspace() type(x) in types.StringTypes => isinstance(x, basestring) isinstance(x, types.StringTypes) => isinstance(x, basestring) type(x) is types.StringType => isinstance(x, str) type(x) == types.StringType => isinstance(x, str) string.split(x, ...) => x.split(...) string.join(x, y) => y.join(x) string.zfill(x, ...) => x.zfill(...) string.count(x, ...) => x.count(...) hasattr(types, "UnicodeType") => try: unicode except NameError: type(x) != types.TupleTuple => not isinstance(x, tuple) isinstance(x, types.TupleType) => isinstance(x, tuple) type(x) is types.IntType => isinstance(x, int) Do not mention the string module in the rlcompleter docstring. This partially applies SF patch http://www.python.org/sf/562373 (with basestring instead of string). (It excludes the changes to unittest.py and does not change the os.stat stuff.)
* Replaced .keys() with dictionary iteratorsRaymond Hettinger2002-06-021-2/+2
|
* Whitespace normalization.Tim Peters2002-04-161-2/+2
|
* Add namespace selection for rlcompleter. Closes SF patch 490026.Neil Schemenauer2002-03-231-12/+40
|
* bunch more __all__ listsSkip Montanaro2001-02-151-0/+2
| | | | | | also modified check_all function to suppress all warnings since they aren't relevant to what this test is doing (allows quiet checking of regsub, for instance)
* Spelling fixes supplied by Rob W. W. Hooft. All these are fixes in eitherThomas Wouters2000-07-161-1/+1
| | | | | | | | | | comments, docstrings or error messages. I fixed two minor things in test_winreg.py ("didn't" -> "Didn't" and "Didnt" -> "Didn't"). There is a minor style issue involved: Guido seems to have preferred English grammar (behaviour, honour) in a couple places. This patch changes that to American, which is the more prominent style in the source. I prefer English myself, so if English is preferred, I'd be happy to supply a patch myself ;)
* Do not expose __builtins__ name as a completion; this is an implementationFred Drake2000-05-311-2/+2
| | | | detail that confuses too many people. Based on discussion in python-dev.
* Oops. Remove some garbage from the doc string that was accidentallyGuido van Rossum1999-11-091-12/+0
| | | | | checked in due to a patching mishap. Reported by Detlef Lannert; thanks!
* Patch by Michael Hudson: when the object of attribute expansion is aGuido van Rossum1999-10-261-3/+26
| | | | | class instance, include the class attributes in the list of possible expansions.
* In completer(), return None instead of raising an IndexError whenGuido van Rossum1998-06-121-1/+4
| | | | | there are no more completions left. (This for compatibility with Donald Beaudry's code.)
* Mass check-in after untabifying all files that need it.Guido van Rossum1998-03-261-49/+49
|
* Removed some unneeded imports, moved others around.Guido van Rossum1997-10-221-4/+2
|
* Word completion for the new readline.set_completer() function.Guido van Rossum1997-09-261-0/+108
When completing a simple identifier, it completes keywords, built-ins and globals in __main__; when completing NAME.NAME..., it evaluates (!) the expression up to the last dot and completes its attributes. It's very cool to do "import string" type "string.", hit the completion key (twice), and see the list of names defined by the string module! Tip: to use the tab key as the completion key, call readline.parse_and_bind("tab: complete")