Created
January 21, 2015 21:29
-
-
Save jimbaker/4ec81726b086c7e1b983 to your computer and use it in GitHub Desktop.
Print main thread name before theading.py clobbers it
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
diff -r 9c81bac53d7a Lib/threading.py | |
--- a/Lib/threading.py Tue Jan 20 22:06:52 2015 +0000 | |
+++ b/Lib/threading.py Wed Jan 21 14:29:01 2015 -0700 | |
@@ -274,6 +274,7 @@ | |
class _MainThread(Thread): | |
def __init__(self): | |
+ print "main thread=%r" % (java.lang.Thread.currentThread().name,) | |
Thread.__init__(self, name="MainThread") | |
import atexit | |
atexit.register(self.__exitfunc) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment