#32561: Unpacking request.GET into a function call turns the values into lists 
with
one item.
-----------------------------------------+------------------------
               Reporter:  atursams       |          Owner:  nobody
                   Type:  Bug            |         Status:  new
              Component:  Uncategorized  |        Version:  3.1
               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              |
-----------------------------------------+------------------------
 Going to this url:

 
http://localhost:8000/api/quote?from_currency_code=EUR&amount=300&to_currency_code=ILS

 {{{
 from django.shortcuts import render

 def print_params(**kwargs):
     print(*kwargs.items())

 async def index(request):
     print_params(**request.GET)
 }}}

 results in this


 {{{
 ('from_currency_code', ['EUR']) ('amount', ['300']) ('to_currency_code',
 ['ILS'])
 }}}

 This is an odd behavior. request.GET.items() has the expected result.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/32561>
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/051.3810dd492c74334305bd29e70b93ea18%40djangoproject.com.

Reply via email to