[Django] #28708: Add constants to detect the Python version

5 views
Skip to first unread message

Django

unread,
Oct 12, 2017, 11:07:40 AM10/12/17
to django-...@googlegroups.com
#28708: Add constants to detect the Python version
------------------------------------------------+------------------------
Reporter: Tim Graham | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Core (Other) | Version: master
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
------------------------------------------------+------------------------
There are a number of `sys.version_info` checks in Django. It would reduce
repetition if values like `PY36` (similar to `six.PY2` and `six.PY3`) were
importable from `django.utils.version`. This is intended to be a private
but stable API so that third-party apps can also use these values.

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

Django

unread,
Oct 12, 2017, 11:11:38 AM10/12/17
to django-...@googlegroups.com
#28708: Add constants to detect the Python version
-------------------------------------+-------------------------------------

Reporter: Tim Graham | Owner: nobody
Type: | Status: new
Cleanup/optimization |

Component: Core (Other) | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage:
| Unreviewed
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Tim Graham):

* has_patch: 0 => 1


Comment:

[https://github.com/django/django/pull/9232 PR]

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

Django

unread,
Oct 12, 2017, 2:06:48 PM10/12/17
to django-...@googlegroups.com
#28708: Add constants to detect the Python version
--------------------------------------+------------------------------------

Reporter: Tim Graham | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Core (Other) | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by Simon Charette):

* stage: Unreviewed => Accepted


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

Django

unread,
Oct 13, 2017, 10:27:28 AM10/13/17
to django-...@googlegroups.com
#28708: Add constants to detect the Python version
--------------------------------------+------------------------------------

Reporter: Tim Graham | Owner: nobody
Type: Cleanup/optimization | Status: closed

Component: Core (Other) | Version: master
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by Tim Graham <timograham@…>):

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


Comment:

In [changeset:"941b0a5b334e043b5fb5ea694d60da0128a8a3b8" 941b0a5b]:
{{{
#!CommitTicketReference repository=""
revision="941b0a5b334e043b5fb5ea694d60da0128a8a3b8"
Fixed #28708 -- Added constants to detect the Python version.
}}}

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

Reply all
Reply to author
Forward
0 new messages