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 92dccc9 commit f6a6f94Copy full SHA for f6a6f94
bpython/repl.py
@@ -479,12 +479,11 @@ def get_object(self, name):
479
480
@classmethod
481
def _funcname_and_argnum(cls, line):
482
+ """Parse out the current function name and arg from a line of code."""
483
# each list in stack:
484
# [full_expr, function_expr, arg_number, opening]
- # empty string in num_commas means we've encountered a kwarg
485
- # so we're done counting
486
-
487
- # new plan: do a full parse, then combine things
+ # arg_number may be a string if we've encountered a keyword
+ # argument so we're done counting
488
stack = [['', '', 0, '']]
489
try:
490
for (token, value) in PythonLexer().get_tokens(line):
0 commit comments