--- Lib/rlcompleter.py 2015-03-14 23:19:38.704759529 +0100 +++ Lib/rlcompleter.py 2015-03-14 23:43:30.808043141 +0100 @@ -73,6 +73,12 @@ if self.use_main_ns: self.namespace = __main__.__dict__ + if not text.strip(): + if state == 0: + return '\t' + else: + return None + if state == 0: if "." in text: self.matches = self.attr_matches(text)