summaryrefslogtreecommitdiffstats
path: root/Lib/threading.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-08-18 16:40:03 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-08-18 16:40:03 (GMT)
commitd8a8972ca955202cb895a48f6d78b17c37f1d1ce (patch)
tree8298f070379f419e516af905f0dfd31fad1c5619 /Lib/threading.py
parente5bdccc77b2a0da0b72f4a6ebbc2d9a1a9680dcd (diff)
downloadcpython-d8a8972ca955202cb895a48f6d78b17c37f1d1ce.zip
cpython-d8a8972ca955202cb895a48f6d78b17c37f1d1ce.tar.gz
cpython-d8a8972ca955202cb895a48f6d78b17c37f1d1ce.tar.bz2
change threading.getIdent to a property
This is new in 2.6 so now need to worry about backwards compatibility :)
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