[Python-checkins] python/dist/src/Lib _threading_local.py,1.1,1.2

akuchling at users.sourceforge.net akuchling at users.sourceforge.net
Thu Jul 15 14:17:45 CEST 2004


Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21062
Modified Files:
	_threading_local.py 
Log Message:
Typo fixes
Index: _threading_local.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/_threading_local.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** _threading_local.py	14 Jul 2004 19:07:15 -0000	1.1
--- _threading_local.py	15 Jul 2004 12:17:26 -0000	1.2
***************
*** 2,6 ****
 
 (Note that this module provides a Python version of thread
! threading.local class. Deoending on the version of Python you're
 using, there may be a faster one available. You should always import
 the local class from threading.)
--- 2,6 ----
 
 (Note that this module provides a Python version of thread
! threading.local class. Depending on the version of Python you're
 using, there may be a faster one available. You should always import
 the local class from threading.)
***************
*** 8,12 ****
 Thread-local objects support the management of thread-local data.
 If you have data that you want to be local to a thread, simply create
! a thread-local object and use it's attributes:
 
 >>> mydata = local()
--- 8,12 ----
 Thread-local objects support the management of thread-local data.
 If you have data that you want to be local to a thread, simply create
! a thread-local object and use its attributes:
 
 >>> mydata = local()
***************
*** 101,105 ****
 [[('color', 'red'), ('initialized', True)], 11]
 
! without effecting this threads data:
 
 >>> mydata.number
--- 101,105 ----
 [[('color', 'red'), ('initialized', True)], 11]
 
! without affecting this thread's data:
 
 >>> mydata.number
***************
*** 230,234 ****
 del __dict__[key]
 except KeyError: 
! pass # didn't have nything in this thread
 
 return __del__
--- 230,234 ----
 del __dict__[key]
 except KeyError: 
! pass # didn't have anything in this thread
 
 return __del__


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /