>>> 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 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1435242 Title: Problematic type casting between int/long? To manage notifications about this bug go to: https://bugs.launchpad.net/python/+bug/1435242/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
