Add _threading_local.local.__delattr__ back to the stub (#8526)

This commit is contained in:
Alex Waygood authored and GitHub committed 2022-08-15 11:56:31 +02:00
1 parent 3623f923a6
commit 5b47f13a99
3 files changed
+14

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
import _threading_local
import threading
loc = threading.local()
loc.foo = 42
del loc.foo
loc.baz = ["spam", "eggs"]
del loc.baz
l2 = _threading_local.local()
l2.asdfasdf = 56
del l2.asdfasdf