Ticket #16595: mention_pop_in_docs.diff

File mention_pop_in_docs.diff, 448 bytes (added by wilfred@…, 4 years ago)

Documentation patch to mention pop()

  • docs/topics/http/sessions.txt

    diff --git a/docs/topics/http/sessions.txt b/docs/topics/http/sessions.txt
    index fb86a98..091b889 100644
    a b You can edit it multiple times. 
    165165
    166166      Example: ``fav_color = request.session.get('fav_color', 'red')``
    167167
     168    .. method:: pop(key)
     169
     170      Example: ``fav_color = request.session.pop('fav_color')``
     171
    168172    .. method:: keys
    169173
    170174    .. method:: items
Back to Top