diff options
| author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-06-16 00:19:29 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-16 00:19:29 -0700 |
| commit | 968b238b5e2c8d9e9050b05ff6741544a66c104d (patch) | |
| tree | 7e249a02058cf1d561f9d19efb6ef387395e2e4f /Lib/operator.py | |
| parent | e929dae42ad6aaf55e5cce6339c1ef97c01c8f7b (diff) | |
| download | cpython-git-968b238b5e2c8d9e9050b05ff6741544a66c104d.tar.gz | |
[3.11] gh-93741: Add private C API _PyImport_GetModuleAttrString() (GH-93742) (GH-93792)
It combines PyImport_ImportModule() and PyObject_GetAttrString()
and saves 4-6 lines of code on every use.
Add also _PyImport_GetModuleAttr() which takes Python strings as arguments.
(cherry picked from commit 6fd4c8ec7740523bb81191c013118d9d6959bc9d)
(cherry picked from commit d42b3689f4a14694f5b1ff75c155141102aa2557)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Lib/operator.py')
0 files changed, 0 insertions, 0 deletions
