diff options
author | Victor Stinner <vstinner@python.org> | 2023-06-22 23:23:08 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-22 23:23:08 (GMT) |
commit | ee52158f209835d6d4ca27f44218466f266f4afb (patch) | |
tree | 52f39ccad2c75bbcc512c277d10ed453e8fbd369 /Python/fileutils.c | |
parent | 193a2b2eaab9890f2cb16128c95bb63cb49307f1 (diff) | |
download | cpython-ee52158f209835d6d4ca27f44218466f266f4afb.zip cpython-ee52158f209835d6d4ca27f44218466f266f4afb.tar.gz cpython-ee52158f209835d6d4ca27f44218466f266f4afb.tar.bz2 |
gh-105927: PyImport_AddModule() uses _PyWeakref_GET_REF() (#106001)
It now raises an exception if sys.modules doesn't hold a strong
reference to the module.
Elaborate the comment explaining why a weak reference is used to
create a borrowed reference.
Diffstat (limited to 'Python/fileutils.c')
0 files changed, 0 insertions, 0 deletions