Issue 8836: Conflicting default values of parameter to import (original) (raw)

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.