]> granicus.if.org Git - python/commit
bpo-32674: Improve the docstring for __import__ (GH-5339) (GH-5489)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 2 Feb 2018 13:32:19 +0000 (05:32 -0800)
committerMariatta <Mariatta@users.noreply.github.com>
Fri, 2 Feb 2018 13:32:19 +0000 (08:32 -0500)
commitf61951b10cc08d3926a3ebaacc154d4149150ef4
tree01c66259996526ae4f0115e535f9f223994c0bcb
parent3a04c52a9eb03e31c60037248b872f3662002a4d
bpo-32674: Improve the docstring for __import__ (GH-5339) (GH-5489)

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