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 <rep...@bugs.python.org> <http://bugs.python.org/issue23842> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com