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

Serhiy Storchaka report at bugs.python.org
Wed Apr 1 22:08:04 CEST 2015


Serhiy Storchaka added the comment:

Oh, this is a catch when backport to 2.7. Here is a patch that makes dev_t converter to support int and int-like types. Added tests (surprisingly there were no tests for makedev/major/minor at all).

> so maybe revert that optimization for the released branches?

It is not an optimization, but required for backward compatibility. Third-party code can expect int and only int.

----------
keywords: +patch
Added file: http://bugs.python.org/file38790/posix_dev_t_converter.patch

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


More information about the Python-bugs-list mailing list