Serhiy Storchaka added the comment: Here is a variant with getattr_static(). ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue18712> _______________________________________