[Django] #32638: threading.Thread.setDaemon has been deprecated in Python 3.10

107 views
Skip to first unread message

Django

unread,
Apr 13, 2021, 1:45:05 AM4/13/21
to django-...@googlegroups.com
#32638: threading.Thread.setDaemon has been deprecated in Python 3.10
------------------------------------------------+--------------------------
Reporter: Xtreak | Owner: nobody
Type: Cleanup/optimization | Status: assigned
Component: Uncategorized | Version: dev
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 |
------------------------------------------------+--------------------------
It seems this has been used at
https://github.com/django/django/blob/76c0b32f826469320c59709d31e2f2126dd7c505/django/utils/autoreload.py#L613
. This can be changed to directly set daemon attribute and the relevant
test can be modified. I will create a pull request for this.

CPython PR : https://github.com/python/cpython/pull/25174

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

Django

unread,
Apr 13, 2021, 1:58:03 AM4/13/21
to django-...@googlegroups.com
#32638: threading.Thread.setDaemon has been deprecated in Python 3.10
-------------------------------------+-------------------------------------
Reporter: Xtreak | Owner: Xtreak
Type: | Status: assigned
Cleanup/optimization |
Component: Uncategorized | Version: dev
Severity: Normal | Resolution:

Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Xtreak):

* owner: nobody => Xtreak


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

Django

unread,
Apr 13, 2021, 2:16:25 AM4/13/21
to django-...@googlegroups.com
#32638: threading.Thread.setDaemon has been deprecated in Python 3.10
-------------------------------------+-------------------------------------
Reporter: Xtreak | Owner: Xtreak
Type: | Status: closed
Cleanup/optimization |
Component: Utilities | Version: dev
Severity: Normal | Resolution: duplicate

Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* status: assigned => closed
* resolution: => duplicate
* component: Uncategorized => Utilities


Comment:

Duplicate of #32074.

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

Reply all
Reply to author
Forward
0 new messages