We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b44184e commit 4ec059aCopy full SHA for 4ec059a
1 file changed
bpython/cli.py
@@ -400,6 +400,10 @@ def attr_matches(self, text):
400
return []
401
402
expr, attr = m.group(1, 3)
403
+ if expr.isdigit():
404
+ # Special case: float literal, using attrs here will result in
405
+ # a SyntaxError
406
+ return []
407
obj = eval(expr, self.interp.locals)
408
with AttrCleaner(obj):
409
matches = self.attr_lookup(obj, expr, attr)
0 commit comments