[Django] #24140: Replace decimal prefix with binary prefix for bytes

11 views
Skip to first unread message

Django

unread,
Jan 12, 2015, 6:48:36 PM1/12/15
to django-...@googlegroups.com
#24140: Replace decimal prefix with binary prefix for bytes
--------------------------------------+--------------------
Reporter: MarkusH | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Documentation | Version: master
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 1 | UI/UX: 0
--------------------------------------+--------------------
The Django docs currently use `kB`, `MB`, etc. despite the fact that the
numbers are computed to the power of 1024 (not 1000). I propose to change
the units in the docs to `KiB`, `MiB`, etc.

--
Ticket URL: <https://code.djangoproject.com/ticket/24140>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Jan 12, 2015, 7:25:00 PM1/12/15
to django-...@googlegroups.com
#24140: Replace decimal prefix with binary prefix for bytes
-------------------------------------+-------------------------------------
Reporter: MarkusH | Owner: nobody
Type: | Status: new
Cleanup/optimization |
Component: Documentation | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by funkybob):

* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0


Comment:

100% agree we should use the right unit for the values.

I notice there's a note on
https://docs.djangoproject.com/en/1.7/ref/templates/builtins/#filesizeformat
that it, too, gets this wrong. Should it, perhaps, take an optional
argument to switch modes?

--
Ticket URL: <https://code.djangoproject.com/ticket/24140#comment:1>

Django

unread,
Jan 12, 2015, 7:45:16 PM1/12/15
to django-...@googlegroups.com
#24140: Replace decimal prefix with binary prefix for bytes
-------------------------------------+-------------------------------------
Reporter: MarkusH | Owner: nobody
Type: | Status: new
Cleanup/optimization |
Component: Documentation | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage:
| Unreviewed

Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by freakboy3742):

See also #8733 and #19348. I'm -0 on making this change. As soon as OS
vendors agree what units we should use, I'll change my mind (and eat my
hat :-).

--
Ticket URL: <https://code.djangoproject.com/ticket/24140#comment:2>

Django

unread,
Jan 14, 2015, 9:50:13 AM1/14/15
to django-...@googlegroups.com
#24140: Replace decimal prefix with binary prefix for bytes
-------------------------------------+-------------------------------------
Reporter: MarkusH | Owner: nobody
Type: | Status: closed
Cleanup/optimization |
Component: Documentation | Version: master
Severity: Normal | Resolution: duplicate
Keywords: | Triage Stage:
| Unreviewed

Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by timgraham):

* status: new => closed
* resolution: => duplicate


--
Ticket URL: <https://code.djangoproject.com/ticket/24140#comment:3>

Reply all
Reply to author
Forward
0 new messages