[issue17193] Use binary prefixes
Roundup Robot added the comment: New changeset c1f846a99c85 by Serhiy Storchaka in branch '3.3': Issue #17193: Use binary prefixes (KiB, MiB, GiB) for memory units. http://hg.python.org/cpython/rev/c1f846a99c85 New changeset 73a16d3c066a by Serhiy Storchaka in branch 'default': Issue #17193: Use binary prefixes (KiB, MiB, GiB) for memory units. http://hg.python.org/cpython/rev/73a16d3c066a -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17193 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17193] Use binary prefixes
Serhiy Storchaka added the comment: Thank you, Ezio, for your comments. -- resolution: - fixed stage: commit review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17193 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17193] Use binary prefixes
Ezio Melotti added the comment: +1 I left some comments on Rietveld. The SI standard says that there should be a space between the value and the unit, and I agree that while a no-break space would be better, a regular space is still better than no space at all. Applying this on 3.3 and default is fine too. -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17193 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17193] Use binary prefixes
Terry J. Reedy added the comment: I agree that we should contribute to ending the confusion. Searching KiB, MiB, GiB (with Google) gives a Wikipedia article as first or second hit, so the meanings of the abbreviations and terms are easily discoverable. -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17193 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17193] Use binary prefixes
Serhiy Storchaka added the comment: For what versions can I apply this patch? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17193 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17193] Use binary prefixes
Brett Cannon added the comment: IMO I say just do 3.4 since it isn't really a bug fix but a cleanup, but I wouldn't object if it was backported. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17193 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17193] Use binary prefixes
Serhiy Storchaka added the comment: Then I'll apply this to 3.3 too. This will facilitate support of both versions. -- assignee: docs@python - serhiy.storchaka versions: +Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17193 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17193] Use binary prefixes
New submission from Serhiy Storchaka: Starting around 1998, a number of standards and trade organizations approved standards and recommendations for a new set of binary prefixes that would refer unambiguously to powers of 1024. According to these, the SI prefixes would only be used in the decimal sense, even when referring to data storage capacities: kilobyte and megabyte would denote one thousand bytes and one million bytes respectively (consistent with SI), while new terms such as kibibyte, mebibyte and gibibyte, abbreviated KiB, MiB, and GiB, would denote 1024 bytes, 1048576 bytes, and 1073741824 bytes respectively.[1] The proposed patch replaces old terms such as kB or KBytes by new terms such as KiB. [1] http://en.wikipedia.org/wiki/Binary_prefix -- assignee: docs@python components: Documentation files: binary_prefixes.patch keywords: easy, patch messages: 181961 nosy: docs@python, serhiy.storchaka priority: normal severity: normal stage: patch review status: open title: Use binary prefixes type: enhancement Added file: http://bugs.python.org/file29049/binary_prefixes.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17193 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17193] Use binary prefixes
Brett Cannon added the comment: Patch looks good except for the consistent lack of space between number and unit, e.g. 5MiB instead of 5 MiB. Is there a reason for this? -- nosy: +brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17193 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17193] Use binary prefixes
Serhiy Storchaka added the comment: Yes, there is a little reason. It looks ugly if a line broken between number and unit (this is possible if we use space). A non-breakable space is better, but it seems that there is no easy way to specify it in ReST. I will be glad to be wrong. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17193 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17193] Use binary prefixes
Brett Cannon added the comment: It might be ugly but it's also incorrect formatting to leave the space out. =) And I think it makes it harder to actually read the number. If you really want to avoid the breaking you can use the tip at http://stackoverflow.com/questions/11830242/non-breaking-space or the Unicode \xa0 literal. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17193 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17193] Use binary prefixes
Serhiy Storchaka added the comment: Yes I have seen these tips and they look complicated enough. Here is an updated patch with spaces between numbers and units. -- Added file: http://bugs.python.org/file29052/binary_prefixes_2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17193 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17193] Use binary prefixes
Brett Cannon added the comment: LGTM -- stage: patch review - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17193 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com