[issue29758] Previously-working SWIG code fails in Python 3.6

STINNER Victor report at bugs.python.org
Thu Mar 9 12:51:13 EST 2017


STINNER Victor added the comment:

"Nope - belay that. Checking through the SWIG-generated Python code, all the classes correctly inherit from object, which negates that issue."

I don't understand your comment, on Python 3, any class inherit from object be default. There is no more old and new classes.


haypo at selma$ cat y.py 
class A: pass
class B(object): pass

print(A.__bases__)
print(B.__bases__)


haypo at selma$ python3 y.py 
(<class 'object'>,)
(<class 'object'>,)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29758>
_______________________________________


More information about the Python-bugs-list mailing list