#18315: QueryDict.pop is inconsistent
-------------------------------------+-------------------------------------
     Reporter:  gcbirzan             |                    Owner:  nobody
         Type:  Uncategorized        |                   Status:  new
    Component:  HTTP handling        |                  Version:  master
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Design
    Has patch:  0                    |  decision needed
  Needs tests:  0                    |      Needs documentation:  0
Easy pickings:  0                    |  Patch needs improvement:  0
                                     |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by _ado):

 Given a QueryDict d={'k':['a', 'b'], 'v':['1', '2']} then d.get('k')='a',
 but d.pop('k')=['a', 'b']
 I've been using pop() to get me the list of values. Changing the
 functionality would be a backwards compatibility problem, indeed. I
 recommend to update the documentation instead.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/18315#comment:3>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to