[issue23842] SystemError: ../Objects/longobject.c:998: bad argument to internal function
STINNER Victor
report at bugs.python.org
Wed Apr 1 18:32:27 CEST 2015
STINNER Victor added the comment:
> return '%d:%d' % (os.major(st.st_rdev), os.minor(st.st_rdev))
Can you check if the error comes from os.major() or os.minor(), and please provide the value of st_rdev?
You can modify the unit test to catch SystemError and raise a new exception with more information.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23842>
_______________________________________
More information about the Python-bugs-list
mailing list