[Python-checkins] bpo-33885: Replace "hook function" with "callable" (GH-7765)

Miss Islington (bot) webhook-mailer at python.org
Fri Jun 22 17:30:48 EDT 2018


https://github.com/python/cpython/commit/e4db73058b6c31f71c64d0f87a10547f3cf72f20
commit: e4db73058b6c31f71c64d0f87a10547f3cf72f20
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2018-06-22T14:30:45-07:00
summary:

bpo-33885: Replace "hook function" with "callable" (GH-7765)

(cherry picked from commit c45cb479074b5d25f0d382d3109f527520a9f03c)

Co-authored-by: Andrés Delfino <adelfino at gmail.com>

files:
M Doc/library/urllib.request.rst

diff --git a/Doc/library/urllib.request.rst b/Doc/library/urllib.request.rst
index b7116fabcd99..0a9d9dae218f 100644
--- a/Doc/library/urllib.request.rst
+++ b/Doc/library/urllib.request.rst
@@ -1339,9 +1339,9 @@ some point in the future.
 
    The second argument, if present, specifies the file location to copy to (if
    absent, the location will be a tempfile with a generated name). The third
-   argument, if present, is a hook function that will be called once on
+   argument, if present, is a callable that will be called once on
    establishment of the network connection and once after each block read
-   thereafter.  The hook will be passed three arguments; a count of blocks
+   thereafter.  The callable will be passed three arguments; a count of blocks
    transferred so far, a block size in bytes, and the total size of the file.  The
    third argument may be ``-1`` on older FTP servers which do not return a file
    size in response to a retrieval request.



More information about the Python-checkins mailing list