>>> 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 Server Team, which is subscribed to cinder in 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-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs