[issue13343] Lambda keyword-only argument not updating co_freevars

2011-11-18 Thread Éric Araujo
Éric Araujo added the comment: > It's made my day. I get to boast at school now! You could do more of that if you got a patch committed! See http://docs.python.org/devguide and http://mail.python.org/mailman/listinfo/core-mentorship for more info if you’re interested. -- nosy: +eric

[issue13343] Lambda keyword-only argument not updating co_freevars

2011-11-04 Thread Joshua Landau
Joshua Landau added the comment: Glad to help :) It's made my day. I get to boast at school now! -- ___ Python tracker ___ ___ Python

[issue13343] Lambda keyword-only argument not updating co_freevars

2011-11-04 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: It was a bug in Python compiler, thanks for the report! -- resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue13343] Lambda keyword-only argument not updating co_freevars

2011-11-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1e0e821d2626 by Amaury Forgeot d'Arc in branch '3.2': Issue #13343: Fix a SystemError when a lambda expression uses a global http://hg.python.org/cpython/rev/1e0e821d2626 New changeset bddb455439d0 by Amaury Forgeot d'Arc in branch 'default': Issue

[issue13343] Lambda keyword-only argument not updating co_freevars

2011-11-04 Thread Mark Dickinson
Mark Dickinson added the comment: Patch looks good to me. -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailin

[issue13343] Lambda keyword-only argument not updating co_freevars

2011-11-04 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc : Removed file: http://bugs.python.org/file23611/issue13343.patch ___ Python tracker ___ ___ Python-bugs-list

[issue13343] Lambda keyword-only argument not updating co_freevars

2011-11-04 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: same patch, without tabs. -- Added file: http://bugs.python.org/file23612/issue13343.patch ___ Python tracker ___ ___

[issue13343] Lambda keyword-only argument not updating co_freevars

2011-11-04 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Here is a patch, with a minimal test. -- keywords: +patch nosy: +amaury.forgeotdarc Added file: http://bugs.python.org/file23611/issue13343.patch ___ Python tracker

[issue13343] Lambda keyword-only argument not updating co_freevars

2011-11-04 Thread Mark Dickinson
Changes by Mark Dickinson : -- priority: normal -> critical stage: -> needs patch versions: +Python 3.3 ___ Python tracker ___ ___ Py

[issue13343] Lambda keyword-only argument not updating co_freevars

2011-11-04 Thread Joshua Landau
New submission from Joshua Landau : When setting defaults to keyword-only arguments in lambdas which are inside non-global scopes, cPython doesn't push the name to it's closure's co_freevars. EXAMPLE: global_variable = None (lambda: (lambda *, keyword_only=global_variable: None))() Because the