[New-bugs-announce] [issue4457] __import__ documentation obsolete

Steven D'Aprano report at bugs.python.org
Sat Nov 29 05:40:54 CET 2008


New submission from Steven D'Aprano <steve at pearwood.info>:

The documentation for __import__ says that it primarily exists "so that
you can replace it with another function that has a compatible
interface, in order to change the semantics of the import statement".
http://docs.python.org/library/functions.html

That is no longer the case. The recommended way to do that is with the
new import hooks, and the docs should reflect that.

A common use for __import__ is for when you don't know the module name
until runtime. That too should be mentioned.

----------
assignee: georg.brandl
components: Documentation
messages: 76582
nosy: georg.brandl, stevenjd
severity: normal
status: open
title: __import__ documentation obsolete

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4457>
_______________________________________


More information about the New-bugs-announce mailing list