Code

Ticket #16595: mention_pop_in_docs.diff

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

Documentation patch to mention pop()

Line 
1diff --git a/docs/topics/http/sessions.txt b/docs/topics/http/sessions.txt
2index fb86a98..091b889 100644
3--- a/docs/topics/http/sessions.txt
4+++ b/docs/topics/http/sessions.txt
5@@ -165,6 +165,10 @@ You can edit it multiple times.
6 
7       Example: ``fav_color = request.session.get('fav_color', 'red')``
8 
9+    .. method:: pop(key)
10+
11+      Example: ``fav_color = request.session.pop('fav_color')``
12+
13     .. method:: keys
14 
15     .. method:: items