SIGN IN SIGN UP

gh-114763: Protect lazy loading modules from attribute access races (GH-114781)

Setting the __class__ attribute of a lazy-loading module to ModuleType enables other threads to attempt to access attributes before the loading is complete. Now that is protected by a lock.
C
Chris Markiewicz committed
200271c61db44d90759f8a8934949aefd72d5724
Parent: ef6074b
Committed by GitHub <noreply@github.com> on 2/24/2024, 12:02:16 AM