diff options
author | Neil Schemenauer <nascheme@enme.ucalgary.ca> | 2005-10-21 18:09:19 (GMT) |
---|---|---|
committer | Neil Schemenauer <nascheme@enme.ucalgary.ca> | 2005-10-21 18:09:19 (GMT) |
commit | ccd19218bccd70c13c4860d807a713f1dcd59b35 (patch) | |
tree | d959ef8eec583bba456fd4a83dcc74f513290aeb /Python | |
parent | ec97a28b60b40d366379d22876baebcdd06a89ad (diff) | |
download | cpython-ccd19218bccd70c13c4860d807a713f1dcd59b35.zip cpython-ccd19218bccd70c13c4860d807a713f1dcd59b35.tar.gz cpython-ccd19218bccd70c13c4860d807a713f1dcd59b35.tar.bz2 |
Use <lamba> as the function name for lambdas (matches old compiler).
Diffstat (limited to 'Python')
-rw-r--r-- | Python/compile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/compile.c b/Python/compile.c index 47c57f4..a883f5f 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -1961,7 +1961,7 @@ compiler_lambda(struct compiler *c, expr_ty e) arguments_ty args = e->v.Lambda.args; assert(e->kind == Lambda_kind); - name = PyString_InternFromString("lambda"); + name = PyString_InternFromString("<lambda>"); if (!name) return 0; |