summaryrefslogtreecommitdiffstats
path: root/Lib/threading.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/threading.py')
-rw-r--r--Lib/threading.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/threading.py b/Lib/threading.py
index d88f1be..e1a0b2a 100644
--- a/Lib/threading.py
+++ b/Lib/threading.py
@@ -663,7 +663,8 @@ class Thread(_Verbose):
setName = _old_api(set_name, "setName")
- def get_ident(self):
+ @property
+ def ident(self):
assert self.__initialized, "Thread.__init__() not called"
return self.__ident