Merged revisions 65818 via svnmerge from

svn+ssh://pythondev@svn.python.org/python/trunk

........
  r65818 | benjamin.peterson | 2008-08-18 11:40:03 -0500 (Mon, 18 Aug 2008) | 4 lines

  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:45:31 +00:00
parent 46f5f9ee0f
commit 773c17b3e1
3 changed files with 8 additions and 7 deletions

View file

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