--- Lib/rlcompleter.py 2014-08-05 15:21:58.000000000 +0100 +++ Lib/rlcompleter.py 2014-08-05 16:58:28.000000000 +0100 @@ -120,7 +120,7 @@ """ import re - m = re.match(r"(\w+(\.\w+)*)\.(\w*)", text) + m = re.match(r"(\w+(\.\w+)*)\.([^.]*)", text) if not m: return [] expr, attr = m.group(1, 3)