]> granicus.if.org Git - python/commit
bpo-32674: Improve the docstring for __import__ (GH-5339) (GH-5488)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 2 Feb 2018 04:51:36 +0000 (20:51 -0800)
committerMariatta <Mariatta@users.noreply.github.com>
Fri, 2 Feb 2018 04:51:36 +0000 (23:51 -0500)
commite985afc38dac3ee5b44d80c638e45ca738a03a23
tree46be9a839f0aa4b02de16fd71e0ac602ea45a890
parent78767786a87b00925506c32b3b55cf65b56ef3d7
bpo-32674: Improve the docstring for __import__ (GH-5339) (GH-5488)

Clarify that the level argument is used to determine whether to
perform absolute or relative imports: 0 is absolute, while a positive number
is the number of parent directories to search relative to the current module.
(cherry picked from commit 461d225b195eec5269f317323b41115516144c41)

Co-authored-by: oldk <oldk1331@users.noreply.github.com>
Python/bltinmodule.c