Qt.py checks whether "long" is defined, and if it isn't (for Python 3.x) defines it as "int". The wrapinstance() function has an assertion to ensure that the 'ptr' parameter passed is of this type. But the assertion message uses a hardcoded '' phrase, so on Python 3 seems to be saying that the parameter should be of the nonexistent "long" type.
https://github.com/mottosso/Qt.py/blob/54cbcbf51c621fea0074f9bb26af5c55862d57fd/Qt.py#L768
Should this message use something like "long.__name_\" instead so it more accurately print "long" on Python 2 and "int" on Python 3?
Qt.py checks whether "long" is defined, and if it isn't (for Python 3.x) defines it as "int". The wrapinstance() function has an assertion to ensure that the 'ptr' parameter passed is of this type. But the assertion message uses a hardcoded '' phrase, so on Python 3 seems to be saying that the parameter should be of the nonexistent "long" type.
https://github.com/mottosso/Qt.py/blob/54cbcbf51c621fea0074f9bb26af5c55862d57fd/Qt.py#L768
Should this message use something like "long.__name_\ " instead so it more accurately print "long" on Python 2 and "int" on Python 3?