Éric Araujo added the comment:

Just wanted to note that addCleanup is smarter than many core devs think:

self.addCleanup(lambda: setattr(keyword, 'kwlist', oldlist))

self.addCleanup(setattr, keyword, 'kwlist', oldlist)

----------
nosy: +eric.araujo

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue9607>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to