Changes between Version 1 and Version 2 of Ticket #26520, comment 5


Ignore:
Timestamp:
Apr 20, 2016, 8:42:46 AM (9 years ago)
Author:
Tim Graham

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #26520, comment 5

    v1 v2  
    1 `dict.pop` raise KeyError if the key is not found AND there's no default provided as second argument... Won't implementing the same in `session.pop` solve both this issue and https://code.djangoproject.com/ticket/24621 (given that the documentation is updated, too) ?
     1`dict.pop` raise KeyError if the key is not found AND there's no default provided as second argument... Won't implementing the same in `session.pop` solve both this issue and #24621 (given that the documentation is updated, too) ?
    22
    33Example:
    44
    5 
    6 {{{
     5{{{ #!python
    76>>> {}.pop('machin')
    87Traceback (most recent call last):
Back to Top