diff options
author | Jeff Epler <jepler@unpythonic.net> | 2025-10-02 13:33:25 -0500 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2025-10-04 16:24:45 +1000 |
commit | d921dd6d61be29866e62b923d3e37859829188bd (patch) | |
tree | 36d2ab666fb48411be126d1aa8f28a3cbb2205fd /extmod/asyncio/core.py | |
parent | 41284577ca389c463a3e69302de8ad0edaf97f24 (diff) |
py/objmodule: Avoid interning a string unnecessarily.
If the lookup of the module name less the leading "u" is going to succeed,
it's already a qstr (because that qstr is the key in
`mp_builtin_extensible_module_map`). So, use a function that will avoid
interning it if it's not already.
For example, if you `import unavailable` it used to intern the string
`navailable`, but now it won't.
Signed-off-by: Jeff Epler <jepler@unpythonic.net>
Diffstat (limited to 'extmod/asyncio/core.py')
0 files changed, 0 insertions, 0 deletions