This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients barry, benjamin.peterson, doko, serhiy.storchaka, vstinner
Date 2015-04-01.20:08:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1427918884.33.3.9753694137e-05.issue23842@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2015-04-01 20:08:04serhiy.storchakasetrecipients: + serhiy.storchaka, barry, doko, vstinner, benjamin.peterson
2015-04-01 20:08:04serhiy.storchakasetmessageid: <1427918884.33.3.9753694137e-05.issue23842@psf.upfronthosting.co.za>
2015-04-01 20:08:04serhiy.storchakalinkissue23842 messages
2015-04-01 20:08:04serhiy.storchakacreate