[Django] #34485: Update examples by using f-strings instead of %

8 views
Skip to first unread message

Django

unread,
Apr 11, 2023, 4:15:49 PM4/11/23
to django-...@googlegroups.com
#34485: Update examples by using f-strings instead of %
-------------------------------------+-------------------------------------
Reporter: | Owner: nobody
krishnassecla |
Type: | Status: new
Cleanup/optimization |
Component: | Version: dev
Documentation |
Severity: Normal | Keywords: documentation,
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 1
UI/UX: 0 |
-------------------------------------+-------------------------------------
The page
https://docs.djangoproject.com/en/4.2/topics/db/examples/one_to_one/ has
examples with __str__ methods using older python % instead of newer and
pythonic f-strings.

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

Django

unread,
Apr 11, 2023, 4:16:34 PM4/11/23
to django-...@googlegroups.com
#34485: Update examples by using f-strings instead of %
-------------------------------------+-------------------------------------
Reporter: krishnassecla | Owner: nobody
Type: | Status: new
Cleanup/optimization |
Component: Documentation | Version: dev
Severity: Normal | Resolution:
Keywords: documentation, | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0

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

* Attachment "Screenshot from 2023-04-12 02-01-13.png" added.

Django

unread,
Apr 11, 2023, 5:33:35 PM4/11/23
to django-...@googlegroups.com
#34485: Update examples by using f-strings instead of %
-------------------------------------+-------------------------------------
Reporter: Pravesh Aryal | Owner: nobody
Type: | Status: closed

Cleanup/optimization |
Component: Documentation | Version: dev
Severity: Normal | Resolution: duplicate

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

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


Comment:

This seems to me like a duicate of #33034

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

Reply all
Reply to author
Forward
0 new messages