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 martin.panter
Recipients martin.panter, socketpair
Date 2016-07-28.04:59:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1469681948.79.0.826041534656.issue27637@psf.upfronthosting.co.za>
In-reply-to
Content
I don’t like special values. A length of minus one makes no sense, so should trigger an exception, not some unexpected behaviour. A different data type like None would be a bit better.

But I’m not sure this would be widely used. If you really need it you could calculate the number of bytes needed via value.bit_length().
History
Date User Action Args
2016-07-28 04:59:08martin.pantersetrecipients: + martin.panter, socketpair
2016-07-28 04:59:08martin.pantersetmessageid: <1469681948.79.0.826041534656.issue27637@psf.upfronthosting.co.za>
2016-07-28 04:59:08martin.panterlinkissue27637 messages
2016-07-28 04:59:08martin.pantercreate