diff options
Diffstat (limited to 'Lib/threading.py')
-rw-r--r-- | Lib/threading.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/threading.py b/Lib/threading.py index 4832101..ccbd67e 100644 --- a/Lib/threading.py +++ b/Lib/threading.py @@ -629,7 +629,8 @@ class Thread(_Verbose): assert self._initialized, "Thread.__init__() not called" self._name = str(name) - def get_ident(self): + @property + def ident(self): assert self._initialized, "Thread.__init__() not called" return self._ident |