[issue8836] Conflicting default values of parameter to __import__

New submission from Anthony Foglia <afoglia@gmail.com>: Looking at the documentation for the __import__ builtin, the default value of the level parameter is unclear. Two different values are mentioned. The function signature is written: __import__(name, globals={}, locals={}, fromlist=[], level=-1) But the third paragraph begins: "level specifies whether to use absolute or relative imports. 0 (the default) means only perform absolute imports." So which is it, -1 or 0? I'm guessing 0. If -1 is still a valid value, it needs to be described. ---------- assignee: docs@python components: Documentation messages: 106621 nosy: afoglia, docs@python priority: normal severity: normal status: open title: Conflicting default values of parameter to __import__ versions: Python 3.1 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue8836> _______________________________________

Benjamin Peterson <benjamin@python.org> added the comment: Fixed in r81572. ---------- nosy: +benjamin.peterson resolution: -> fixed status: open -> closed _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue8836> _______________________________________

Benjamin Peterson <benjamin@python.org> added the comment: Fixed in r81572. ---------- nosy: +benjamin.peterson resolution: -> fixed status: open -> closed _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue8836> _______________________________________
participants (2)
-
Anthony Foglia
-
Benjamin Peterson