GNU readline 向けではあるんですが、rlcompleter を使うと、tab による補完が可能らしい。
$ python
>>> import rlcompleter >>> import readline >>> readline.parse_and_bind("tab: complete")
とすると、
>>> str='text'
>>> str.tab
str.__add__ str.__lt__ str.encode str.replace str.__class__ str.__mod__ str.endswith str.rfind str.__contains__ str.__mul__ str.expandtabs str.rindex str.__delattr__ str.__ne__ str.find str.rjust str.__doc__ str.__new__ str.index str.rstrip str.__eq__ str.__reduce__ str.isalnum str.split str.__ge__ str.__reduce_ex__ str.isalpha str.splitlines str.__getattribute__ str.__repr__ str.isdigit str.startswith str.__getitem__ str.__rmod__ str.islower str.strip str.__getnewargs__ str.__rmul__ str.isspace str.swapcase str.__getslice__ str.__setattr__ str.istitle str.title str.__gt__ str.__str__ str.isupper str.translate str.__hash__ str.capitalize str.join str.upper str.__init__ str.center str.ljust str.zfill str.__le__ str.count str.lower str.__len__ str.decode str.lstrip
おお! これは便利 :-)
via http://www.python.jp/doc/nightly/lib/module-rlcompleter.html
via http://www.python.jp/Zope/PyLog/1046404380/1046602589/index_html
IPv4/IPv6 meter |
思ったより安い……時もある、Amazon |