[Django] #36570: Remove ":py" domain from roles

12 views
Skip to first unread message

Django

unread,
Aug 25, 2025, 9:09:45 AMAug 25
to django-...@googlegroups.com
#36570: Remove ":py" domain from roles
-------------------------------------+-------------------------------------
Reporter: Tim Graham | Type:
| Cleanup/optimization
Status: new | Component:
| Documentation
Version: dev | Severity: Normal
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
In the documentation source files, there's some confusion about roles like
{{{:py:class:`email.message.EmailMessage`}}}. In this case, `py` indicates
the Python language [https://www.sphinx-
doc.org/en/master/usage/domains/index.html domain] (which means any code
written in Python, not Python built-ins in particular).

Since the Python domain is the default in Sphinx, you can omit the `:py`
prefix when referring to Python objects, for example, using `:class:`
instead of `:py:class:`.

Including `:py` ensures clarity and avoids ambiguity if other domains are
also in use., but since the Django documentation doesn't use other domains
(C++, JavaScript, etc.), I see no reason to include the prefix.
--
Ticket URL: <https://code.djangoproject.com/ticket/36570>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Aug 25, 2025, 9:38:07 AMAug 25
to django-...@googlegroups.com
#36570: Remove ":py" domain from roles
-------------------------------------+-------------------------------------
Reporter: Tim Graham | Owner:
Type: | JaeHyuckSa
Cleanup/optimization | Status: assigned
Component: Documentation | Version: dev
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 JaeHyuckSa):

* owner: (none) => JaeHyuckSa
* status: new => assigned

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

Django

unread,
Aug 25, 2025, 9:39:25 AMAug 25
to django-...@googlegroups.com
#36570: Remove ":py" domain from roles
-------------------------------------+-------------------------------------
Reporter: Tim Graham | Owner:
Type: | JaeHyuckSa
Cleanup/optimization | Status: assigned
Component: Documentation | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Sarah Boyce):

* stage: Unreviewed => Accepted

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

Django

unread,
Aug 25, 2025, 9:44:40 AMAug 25
to django-...@googlegroups.com
#36570: Remove ":py" domain from roles
-------------------------------------+-------------------------------------
Reporter: Tim Graham | Owner:
Type: | JaeHyuckSa
Cleanup/optimization | Status: assigned
Component: Documentation | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by JaeHyuckSa):

* has_patch: 0 => 1

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

Django

unread,
Aug 25, 2025, 9:56:55 AMAug 25
to django-...@googlegroups.com
#36570: Remove ":py" domain from roles
-------------------------------------+-------------------------------------
Reporter: Tim Graham | Owner:
Type: | JaeHyuckSa
Cleanup/optimization | Status: assigned
Component: Documentation | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Sarah Boyce):

* needs_better_patch: 0 => 1

--
Ticket URL: <https://code.djangoproject.com/ticket/36570#comment:4>

Django

unread,
Aug 25, 2025, 11:55:21 AMAug 25
to django-...@googlegroups.com
#36570: Remove ":py" domain from roles
-------------------------------------+-------------------------------------
Reporter: Tim Graham | Owner:
Type: | JaeHyuckSa
Cleanup/optimization | Status: assigned
Component: Documentation | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by JaeHyuckSa):

* needs_better_patch: 1 => 0

--
Ticket URL: <https://code.djangoproject.com/ticket/36570#comment:5>

Django

unread,
Aug 27, 2025, 11:01:21 AMAug 27
to django-...@googlegroups.com
#36570: Remove ":py" domain from roles
-------------------------------------+-------------------------------------
Reporter: Tim Graham | Owner:
Type: | JaeHyuckSa
Cleanup/optimization | Status: assigned
Component: Documentation | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Sarah Boyce):

* stage: Accepted => Ready for checkin

--
Ticket URL: <https://code.djangoproject.com/ticket/36570#comment:6>

Django

unread,
Aug 28, 2025, 2:52:54 AMAug 28
to django-...@googlegroups.com
#36570: Remove ":py" domain from roles
-------------------------------------+-------------------------------------
Reporter: Tim Graham | Owner:
Type: | JaeHyuckSa
Cleanup/optimization | Status: closed
Component: Documentation | Version: dev
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Sarah Boyce <42296566+sarahboyce@…>):

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

Comment:

In [changeset:"3c0c54351b58e9386375d2bd7a8c60dadc4bb6e8" 3c0c5435]:
{{{#!CommitTicketReference repository=""
revision="3c0c54351b58e9386375d2bd7a8c60dadc4bb6e8"
Fixed #36570 -- Removed unnecessary :py domain from documentation roles.

Signed-off-by: SaJH <wogur...@gmail.com>
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/36570#comment:7>

Django

unread,
Aug 28, 2025, 2:52:54 AMAug 28
to django-...@googlegroups.com
#36570: Remove ":py" domain from roles
-------------------------------------+-------------------------------------
Reporter: Tim Graham | Owner:
Type: | JaeHyuckSa
Cleanup/optimization | Status: closed
Component: Documentation | Version: dev
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Sarah Boyce <42296566+sarahboyce@…>):

In [changeset:"05bac8c4202aba77dcb109aeedd35ff563331e1a" 05bac8c4]:
{{{#!CommitTicketReference repository=""
revision="05bac8c4202aba77dcb109aeedd35ff563331e1a"
Refs #36570 -- Added sphinxlint checker to flag unnecessary :py domain in
documentation roles.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/36570#comment:8>
Reply all
Reply to author
Forward
0 new messages