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 martin.panter, serhiy.storchaka, socketpair
Date 2016-07-28.06:14:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1469686491.03.0.951776641782.issue27637@psf.upfronthosting.co.za>
In-reply-to
Content
This is rarely needed, mainly in general serializers like pickle. The code for determining the minimal number of bytes is not trivial, but it depends on the serializer. If you always serialize unsigned values and saves the sign separately, or use one's complement represenatation, or if the serializer supports only fixed set of integer sizes, the code is absolutely different.

I don't think that we need this feature in the stdlib.
History
Date User Action Args
2016-07-28 06:14:51serhiy.storchakasetrecipients: + serhiy.storchaka, socketpair, martin.panter
2016-07-28 06:14:51serhiy.storchakasetmessageid: <1469686491.03.0.951776641782.issue27637@psf.upfronthosting.co.za>
2016-07-28 06:14:51serhiy.storchakalinkissue27637 messages
2016-07-28 06:14:50serhiy.storchakacreate