change threading.getIdent to a property

This is new in 2.6 so now need to worry about backwards compatibility :)
This commit is contained in:
Benjamin Peterson 2008-08-18 16:40:03 +00:00
parent e5bdccc77b
commit d8a8972ca9
4 changed files with 9 additions and 8 deletions

View file

@ -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