Opened 3 weeks ago

Closed 3 weeks ago

#37475 closed Uncategorized (wontfix)

Tutorial part 4, explicit list for reverse() args

Reported by: Julien Vallet Owned by: Julien Vallet
Component: Documentation Version: 6.1
Severity: Low Keywords: tutorial
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

The current version (​https://github.com/django/django/blob/main/docs/intro/tutorial04.txt#L106) is creating an implicit list by using a trailing comma. I suggest to use an explicit list instead to both be inline with the documentation and avoid user error/confusion.

I already have a pull request to address this issue (​https://github.com/django/django/pull/22246).

Change History (2)

comment:1 by Julien Vallet, 3 weeks ago

Easy pickings: set

comment:2 by Mariusz Felisiak, 3 weeks ago

Resolution: → wontfix
Status: assigned → closed

What do you mean by "implicit list"? args can be a tuple, reverse() with a tuple is used many time in docs. Also, we try to avoid trivial code and docs changed unless it's a big problem as it creates extra noise in the history.

Note: See TracTickets for help on using tickets.
Back to Top