We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f73701a commit 5abd6ebCopy full SHA for 5abd6eb
bpython/repl.py
@@ -534,13 +534,17 @@ def get_args(self):
534
stack[-1][1] += 1
535
except TypeError:
536
stack[-1][1] = ''
537
+ stack[-1][0] = ''
538
elif value == ':' and stack[-1][2] == 'lambda':
539
stack.pop()
540
+ else:
541
542
elif (token is Token.Name or token in Token.Name.subtypes or
543
token is Token.Operator and value == '.'):
544
stack[-1][0] += value
545
elif token is Token.Operator and value == '=':
546
stack[-1][1] = stack[-1][0]
547
548
elif token is Token.Keyword and value == 'lambda':
549
stack.append(['', 0, value])
550
else:
0 commit comments