MOON
Server: Apache/2.2.34 (Unix) mod_ssl/2.2.34 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 FrontPage/5.0.2.2635
System: Linux server.asjudinet.com 2.6.32-042stab141.3 #1 SMP Fri Nov 15 22:45:34 MSK 2019 i686
User: asjudine (504)
PHP: 5.2.17
Disabled: NONE
Upload Files
File: //proc/3/root/proc/2/cwd/usr/lib/python2.4/Demo/threads/Generator.pyc
mō
‚=5Dc@s?dkZdZdfd„ƒYZd„Zd„ZeƒdS(NsGenerator.Killedt	GeneratorcBs>tZd„Zd„Zd„Zd„Zd„Zd„ZRS(NcCsstiƒ|_tiƒ|_|iiƒ|iiƒ||_||_d|_d|_	ti
|ifƒdS(Ni(tthreadt
allocate_locktselftgetlocktputlocktacquiretfunctargstdonetkilledtstart_new_threadt_start(RRR((t,/usr/lib/python2.4/Demo/threads/Generator.pyt__init__	s

				cCszS|iiƒ|ip8yt|i|f|iƒWqRtj
oqRXnWd|ipd|_|i	i
ƒnXdS(Ni(RRRR
tapplyRRtKilledR	Rtrelease(R((R
Rs



	cCsR|io
td‚n||_|iiƒ|iiƒ|io
t‚ndS(Ns put() called on killed generator(	RR
t	TypeErrortvalueRRRRR(RR((R
tput!s

	


cCsL|io
td‚n|iiƒ|iiƒ|io
t‚n|i	S(Ns get() called on killed generator(
RR
RRRRRR	tEOFErrorR(R((R
tget*s





cCs1|io
td‚nd|_|iiƒdS(Ns!kill() called on killed generatori(RR
RRR(R((R
tkill3s

	cCst|i|iƒS(N(RRRR(R((R
tclone9s(t__name__t
__module__RRRRRR(((R
Rs		
					c
Csęd\}}}}}xÎ||d|d|d}}}||||||||||f\}}}}||||}}	xW||	joI|i
t|ƒƒd||d||}}||||}}	qŠWqWdS(Nllllil
(lllll(tktatbta1tb1tptqtdtd1tgRtint(
R$RR!RR"RRR RR#((R
tpi<s$6
cCsvttfƒ}|iƒttfƒ}xtdƒD]}|iƒGq5WH|iƒ}|iƒx|iƒGqcWdS(Ni
i(	RR&R$RtrangetiRRth(R$R(R)((R
ttestIs


(RRRR&R*(R*RR&RR((R
t?s
	5