summaryrefslogtreecommitdiffstatshomepage
path: root/py/scope.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-04-27 15:50:52 +0100
committerDamien George <damien.p.george@gmail.com>2014-04-27 15:50:52 +0100
commit2827d62e8b5790b2d770b9ce54e25cd56e949f20 (patch)
treecca15628b4649f6d404990ffc1531ac5aeee0225 /py/scope.c
parent36cbd0db7e4f297c8fc729c842b171af2cfd04c7 (diff)
downloadmicropython-2827d62e8b5790b2d770b9ce54e25cd56e949f20.tar.gz
micropython-2827d62e8b5790b2d770b9ce54e25cd56e949f20.zip
py: Implement keyword-only args.
Implements 'def f(*, a)' and 'def f(*a, b)', but not default keyword-only args, eg 'def f(*, a=1)'. Partially addresses issue #524.
Diffstat (limited to 'py/scope.c')
-rw-r--r--py/scope.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/scope.c b/py/scope.c
index 391ad5da87..1f92729d59 100644
--- a/py/scope.c
+++ b/py/scope.c
@@ -236,7 +236,7 @@ void scope_print_info(scope_t *s) {
printf("\n");
*/
printf(" flags %04x\n", s->scope_flags);
- printf(" argcount %d\n", s->num_params);
+ printf(" argcount %d\n", s->num_pos_args);
printf(" nlocals %d\n", s->num_locals);
printf(" stacksize %d\n", s->stack_size);
}