adding clarification to the history API. It was not clear how the history list was sorted.

This commit is contained in:
karl
2012-07-12 16:34:28 -04:00
parent 884fc333a1
commit 9fe4a99365
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -386,7 +386,7 @@ of the Response object to track redirection. Let's see what Github does::
[<Response [301]>]
The :class:`Response.history` list contains a list of the
:class:`Request` objects that were created in order to complete the request.
:class:`Request` objects that were created in order to complete the request. The list is sorted from the oldest to the most recent request.
If you're using GET or OPTIONS, you can disable redirection handling with the
``allow_redirects`` parameter::
+1 -1
View File
@@ -660,7 +660,7 @@ class Response(object):
#: A list of :class:`Response <Response>` objects from
#: the history of the Request. Any redirect responses will end
#: up here.
#: up here. The list is sorted from the oldest to the most recent request.
self.history = []
#: The :class:`Request <Request>` that created the Response.