[issue23842] SystemError: ../Objects/longobject.c:998: bad argument to internal function

Matthias Klose report at bugs.python.org
Wed Apr 1 19:47:47 CEST 2015


Matthias Klose added the comment:

so the culprit is an "optimization":

"Committed to 2.7 with small change: stat() and makedev() should return int instead of long if possible."

the test case however expects a long. st_dev is now not always a long, but an int or long depending on the value.

----------

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


More information about the Python-bugs-list mailing list