[Bug 1435242] Re: Problematic type casting between int/long?
Matthias Klose
doko at ubuntu.com
Wed Apr 1 18:03:54 UTC 2015
>>> 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
More information about the Ubuntu-server-bugs
mailing list