On Wed, Nov 30, 2016 at 8:34 PM, Ian Kelly <ian.g.kelly at gmail.com> wrote: > To be pedantic, it should be more like: > > return type(aiter).__dict__['__anext__']() And of course, if you don't find it there then to be proper you also have to walk the MRO and check all of those class dicts as well.