Message403901
You are running in a typical scope issue. The local and global scope of a lambda work differently than you expect. You can work around the issue by making fun a local variable:
for name, fun in namefun:
name2fun[name] = lambda x, fun=fun: fun(x) |
|
Date |
User |
Action |
Args |
2021-10-14 12:53:20 | christian.heimes | set | recipients:
+ christian.heimes, vincent7f |
2021-10-14 12:53:20 | christian.heimes | set | messageid: <1634216000.95.0.175671075801.issue45469@roundup.psfhosted.org> |
2021-10-14 12:53:20 | christian.heimes | link | issue45469 messages |
2021-10-14 12:53:20 | christian.heimes | create | |
|