dbm.whichdb() returns the dotted submodule name, such as "dbm.ndbm" or
"dbm.gnu" (these are the keys of the internal _modules dispatch table, and
the values documented in Doc/library/dbm.rst).
The function docstring in Lib/dbm/__init__.py still shows the pre-package
form:
- the name of the dbm submodule (e.g. "ndbm" or "gnu") if recognized.
The example should use the actual dotted names, to match the code and the
documentation.
Linked PRs
dbm.whichdb()returns the dotted submodule name, such as"dbm.ndbm"or"dbm.gnu"(these are the keys of the internal_modulesdispatch table, andthe values documented in
Doc/library/dbm.rst).The function docstring in
Lib/dbm/__init__.pystill shows the pre-packageform:
The example should use the actual dotted names, to match the code and the
documentation.
Linked PRs