Created
July 27, 2020 10:44
-
-
Save workingenius/1a4df7f9ae8f366447f2c6138630c99b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import thread | |
def thread_func(cls): | |
a = cls() | |
# do something with a .... | |
def work(): | |
class DefineClass: | |
pass | |
print id(DefineClass) | |
thread.start_new_thread(thread_func, (DefineClass, )) | |
for i in range(100): | |
work() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment