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 miserlou2
Recipients FlipperPA, Jason Stelzer, eric.smith, miserlou2, mivade, serhiy.storchaka
Date 2017-10-11.20:21:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1507753312.63.0.213398074469.issue31749@psf.upfronthosting.co.za>
In-reply-to
Content
I think bitmath would be overkill to include in its entirety, but maybe there solution is a good one.

There is also:

https://pypi.python.org/pypi/byteformat/
https://pypi.python.org/pypi/datasize
https://pypi.python.org/pypi/hurry.filesize
https://pypi.python.org/pypi/hfilesize/
https://humanfriendly.readthedocs.io/en/latest/
https://pypi.python.org/pypi/humanize

and a bajillion other solutions here: https://stackoverflow.com/questions/1094841/reusable-library-to-get-human-readable-version-of-file-size and elsewhere - I think really the underscoring how common this problem is.

(Although I don't _particularly want_ this to expand beyond the scope of this single function, it does seem that given the amount of "Python for Humans" stuff out there, there could be an argument made for adding a "humanize" package into the standard library..)
History
Date User Action Args
2017-10-11 20:21:52miserlou2setrecipients: + miserlou2, eric.smith, serhiy.storchaka, mivade, FlipperPA, Jason Stelzer
2017-10-11 20:21:52miserlou2setmessageid: <1507753312.63.0.213398074469.issue31749@psf.upfronthosting.co.za>
2017-10-11 20:21:52miserlou2linkissue31749 messages
2017-10-11 20:21:52miserlou2create