Mark Dickinson <[email protected]> added the comment:

Here's a patch.  It's a little ugly, but I don't see a better way that avoids 
locals().  Using **kwargs is an option, but would mean abandoning the current 
nice feature that unexpected keyword arguments raise TypeError (or 
alternatively, implementing that check separately).

This should be backported to 2.x after 2.7 has been released;  for that 
backport, the dictionary comprehensions should be replaced by 
dict(<list_comprehension>), so that the code remains valid with older Python 
versions.

----------
keywords: +patch
stage: needs patch -> commit review
versions: +Python 2.6, Python 2.7, Python 3.2
Added file: http://bugs.python.org/file17825/issue9136.patch

_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue9136>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to