[issue25509] PyImport_ImportModule inaccurately described

2020-10-23 Thread Brett Cannon
Brett Cannon added the comment: The docs for PyImport_ImportModule() is https://docs.python.org/3/c-api/import.html?highlight=pyimport_importmodule#c.PyImport_ImportModule and https://github.com/python/cpython/blob/master/Doc/c-api/import.rst. -- keywords: +easy (C) -easy

[issue25509] PyImport_ImportModule inaccurately described

2020-09-11 Thread Brett Cannon
Change by Brett Cannon : -- keywords: +easy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25509] PyImport_ImportModule inaccurately described

2020-09-11 Thread Brett Cannon
Change by Brett Cannon : -- versions: +Python 3.10 -Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue25509] PyImport_ImportModule inaccurately described

2020-09-11 Thread Brett Cannon
Brett Cannon added the comment: https://github.com/python/cpython/blob/45b34a04a577aa49fa4825421758c3e8eaa1625d/Python/import.c#L1474-L1485 shows that the docs could be simplified to point out that `PyImport_ImportModule()` is a wrapper around `PyImport_Import()` which takes `const char *`.

[issue25509] PyImport_ImportModule inaccurately described

2015-10-31 Thread Memeplex
Memeplex added the comment: Well it's like that since 2.1 so I guess the doc is wrong indeee. -- ___ Python tracker ___

[issue25509] PyImport_ImportModule inaccurately described

2015-10-31 Thread Memeplex
Memeplex added the comment: Brett, I'm not sure about that, notice that the "import hook" as is mentioned in the docs is just the current __import__ in the builtins module (which could have been replaced and in this sense would be a "hook") but not proper import hooks. I think the original

[issue25509] PyImport_ImportModule inaccurately described

2015-10-29 Thread Memeplex
New submission from Memeplex: The documentation (for 3.5) states that "[PyImport_ImportModule] is a simplified interface to PyImport_ImportModuleEx()" but the current implementation calls PyImport_Import instead, which is a higher level interface that takes into account import hooks. Older

[issue25509] PyImport_ImportModule inaccurately described

2015-10-29 Thread Brett Cannon
Brett Cannon added the comment: Semantic change was probably because of the lack of import hook support which is required since Python 3.3. So the docs just need to be fixed rather than the semantics. -- ___ Python tracker

[issue25509] PyImport_ImportModule inaccurately described

2015-10-29 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: +brett.cannon ___ Python tracker ___ ___