Return the module after creating it and adding it to sys.modules. If parents is True then also create any missing parents.
(spec, *, parents=True)
| 422 | |
| 423 | |
| 424 | def add_module(spec, *, parents=True): |
| 425 | """Return the module after creating it and adding it to sys.modules. |
| 426 | |
| 427 | If parents is True then also create any missing parents. |
| 428 | """ |
| 429 | return _add_module(spec, False, parents) |
| 430 | |
| 431 | |
| 432 | def add_package(spec, *, parents=True): |
searching dependent graphs…