Comment 2 for bug 1435242

Revision history for this message
Matthias Klose (doko) wrote :

>>> import os
>>> os.minor(os.makedev(8,65))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
SystemError: ../Objects/longobject.c:998: bad argument to internal function
>>> os.major(os.makedev(8,65))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
SystemError: ../Objects/longobject.c:998: bad argument to internal function

casting to a long works ...

>>> os.major(long(os.makedev(8,65)))
8