#31555: Use .fortmat() and f-strings in the polls tutorial
------------------------------------------------+------------------------
               Reporter:  yahya-abou-imran      |          Owner:  nobody
                   Type:  Cleanup/optimization  |         Status:  new
              Component:  Documentation         |        Version:  3.0
               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                     |
------------------------------------------------+------------------------
 Some part of the tutorial contains the old format way (with the %
 operator)

 {{{
 return HttpResponse("You're looking at question %s." % question_id)
 response = "You're looking at the results of question %s."
 return HttpResponse(response % question_id)
 }}}

 I think it’s better to guide newcomers to the new way.
 I’m ready to submit a patch for this if there’s nothing against it.

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

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/059.46953c380fe57a8a18b2b2c4531184d0%40djangoproject.com.

Reply via email to