You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In [18]: cython.__version__
Out[18]: '0.29.5'
In [19]: class Bar(object): pass
In [20]: code = "Bar"
In [21]: cython.inline(code, language_level=2)
...
TypeError: descriptor 'mro' of 'type' object needs an argument
This is basically trying to do query mro on type(<class>) which used to work for old style classes:
py3:
In [24]: type(Bar).mro()
...
TypeError: descriptor 'mro' of 'type' object needs an argument
py2:
In [74]: class Foo: pass
In [75]: type(Foo).mro()
Out[75]: [classobj, object]
The text was updated successfully, but these errors were encountered:
This is basically trying to do query mro on type(<class>) which used to work for old style classes:
py3:
py2:
The text was updated successfully, but these errors were encountered: