0
Mac OSのPython 3.6でCmd.cmdフレームワークをしばらくテストした後、私は何をすべきか分からないという問題に気付きました。オートコンプリートが機能していないようです。動作するようには思えないPython3のcmd.CmdオートコンプリートがMac OSで動作しないのはなぜですか?
import cmd
addresses = [
'[email protected]',
'[email protected]',
'[email protected]',
]
class MyCmd(cmd.Cmd):
def do_send(self, line):
pass
def complete_send(self, text, line, start_index, end_index):
if text:
return [
address for address in addresses
if address.startswith(text)
]
else:
return addresses
if __name__ == '__main__':
my_cmd = MyCmd()
my_cmd.cmdloop()
が、それだけで空白スペース(通常のタブ)を追加します。私は、フォーラムで見つけ、簡単なコードでテスト。どんなworkaroud?
実際にはどちらも動作しません。私はマックにいるという事実とは何か? – Blaxou