|
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17 System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64 User : nobody ( 99) PHP Version : 5.2.17 Disable Function : NONE Directory : /usr/lib64/python2.4/ |
Upload File : |
mò
‚=5Dc @ s¢ d Z d Z d Z d d d d d d d g Z d
k Z d e f d „ ƒ YZ h d „ Z d
„ Z d „ Z
d „ Z d e f d „ ƒ YZ
e a e a d „ Z d
S( s, Drop-in replacement for the thread module.
Meant to be used as a brain-dead substitute so that threaded code does
not need to be rewritten for when the thread module is not present.
Suggested usage is::
try:
import thread
except ImportError:
import dummy_thread as thread
s Brett Cannons brett@python.orgt errort start_new_threadt exitt get_identt
allocate_lockt interrupt_maint LockTypeNc B s t Z d Z d „ Z RS( s% Dummy implementation of thread.error.c G s
| | _ d S( N( t argst self( R R ( ( t$ /usr/lib64/python2.4/dummy_thread.pyt __init__ s ( t __name__t
__module__t __doc__R
( ( ( R R s c C s¶ t | ƒ t t ƒ ƒ j o t d ƒ ‚ n t | ƒ t t ƒ ƒ j o t d ƒ ‚ n t a y | | | Ž Wn# t j
o n t
i ƒ n Xt a t
o t a
t ‚ n d S( sä Dummy implementation of thread.start_new_thread().
Compatibility is maintained by making sure that ``args`` is a
tuple and ``kwargs`` is a dictionary. If an exception is raised
and it is SystemExit (which can be done by thread.exit()) it is
caught and nothing is done; all other exceptions are printed out
by using traceback.print_exc().
If the executed function calls interrupt_main the KeyboardInterrupt will be
raised when the function returns.
s 2nd arg must be a tuples 3rd arg must be a dictN( t typeR t tuplet TypeErrort kwargst dictt Falset _maint functiont
SystemExitt
_tracebackt print_exct Truet
_interruptt KeyboardInterrupt( R R R ( ( R R s$ c C s
t ‚ d S( s&