SIGN IN SIGN UP

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.
V
Victor Stinner committed
ee52158f209835d6d4ca27f44218466f266f4afb
Parent: 193a2b2
Committed by GitHub <noreply@github.com> on 6/22/2023, 11:23:08 PM