config root man

Current Path : /usr/local/lib/python2.5/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //usr/local/lib/python2.5/Queue.pyo

³ò
h”Rc@sxdZddklZddklZdddgZdefd„ƒYZdefd„ƒYZddd	„ƒYZ	d
S(s'A multi-producer, multi-consumer queue.iÿÿÿÿ(ttime(tdequetEmptytFulltQueuecBseZdZRS(s4Exception raised by Queue.get(block=0)/get_nowait().(t__name__t
__module__t__doc__(((s!/usr/local/lib/python2.5/Queue.pyRscBseZdZRS(s4Exception raised by Queue.put(block=0)/put_nowait().(RRR(((s!/usr/local/lib/python2.5/Queue.pyRscBs­eZdZdd„Zd„Zd„Zd„Zd„Zd„Ze	dd„Zd	„Ze	dd
„Z
d„Zd„Zd
„Zd„Zd„Zd„Zd„ZRS(sjCreate a queue object with a given maximum size.

    If maxsize is <= 0, the queue size is infinite.
    icCsšyddk}Wntj
oddk}nX|i|ƒ|iƒ|_|i|iƒ|_|i|iƒ|_|i|iƒ|_	d|_
dS(Niÿÿÿÿi(t	threadingtImportErrortdummy_threadingt_inittLocktmutext	Conditiont	not_emptytnot_fulltall_tasks_donetunfinished_tasks(tselftmaxsizeR((s!/usr/local/lib/python2.5/Queue.pyt__init__s
cCsw|iiƒzU|id}|djo.|djotdƒ‚n|iiƒn||_Wd|iiƒXdS(s.Indicate that a formerly enqueued task is complete.

        Used by Queue consumer threads.  For each get() used to fetch a task,
        a subsequent call to task_done() tells the queue that the processing
        on the task is complete.

        If a join() is currently blocking, it will resume when all items
        have been processed (meaning that a task_done() call was received
        for every item that had been put() into the queue).

        Raises a ValueError if called more times than there were items
        placed in the queue.
        iis!task_done() called too many timesN(RtacquireRt
ValueErrort	notifyAlltrelease(Rt
unfinished((s!/usr/local/lib/python2.5/Queue.pyt	task_done+s




cCsE|iiƒz#x|io|iiƒqWWd|iiƒXdS(sƒBlocks until all items in the Queue have been gotten and processed.

        The count of unfinished tasks goes up whenever an item is added to the
        queue. The count goes down whenever a consumer thread calls task_done()
        to indicate the item was retrieved and all work on it is complete.

        When the count of unfinished tasks drops to zero, join() unblocks.
        N(RRRtwaitR(R((s!/usr/local/lib/python2.5/Queue.pytjoinDs	

cCs*|iiƒ|iƒ}|iiƒ|S(s9Return the approximate size of the queue (not reliable!).(R
Rt_qsizeR(Rtn((s!/usr/local/lib/python2.5/Queue.pytqsizeTs

cCs*|iiƒ|iƒ}|iiƒ|S(sCReturn True if the queue is empty, False otherwise (not reliable!).(R
Rt_emptyR(RR((s!/usr/local/lib/python2.5/Queue.pytempty[s

cCs*|iiƒ|iƒ}|iiƒ|S(sBReturn True if the queue is full, False otherwise (not reliable!).(R
Rt_fullR(RR((s!/usr/local/lib/python2.5/Queue.pytfullbs

cCs|iiƒzõ|p|iƒo
t‚qØn§|djo&x–|iƒo|iiƒqBWnt|djotdƒ‚ntƒ|}xF|iƒo8|tƒ}|djo
t‚n|ii|ƒq’W|i|ƒ|i	d7_	|i
iƒWd|iiƒXdS(sPut an item into the queue.

        If optional args 'block' is true and 'timeout' is None (the default),
        block if necessary until a free slot is available. If 'timeout' is
        a positive number, it blocks at most 'timeout' seconds and raises
        the Full exception if no free slot was available within that time.
        Otherwise ('block' is false), put an item on the queue if a free slot
        is immediately available, else raise the Full exception ('timeout'
        is ignored in that case).
        is#'timeout' must be a positive numbergiN(
RRR#RtNoneRRt_timet_putRRtnotifyR(Rtitemtblockttimeouttendtimet	remaining((s!/usr/local/lib/python2.5/Queue.pytputis,










cCs|i|tƒS(s©Put an item into the queue without blocking.

        Only enqueue the item if a free slot is immediately available.
        Otherwise raise the Full exception.
        (R.tFalse(RR)((s!/usr/local/lib/python2.5/Queue.pyt
put_nowait‹scCs|iiƒzé|p|iƒo
t‚qØn§|djo&x–|iƒo|iiƒqBWnt|djotdƒ‚ntƒ|}xF|iƒo8|tƒ}|djo
t‚n|ii|ƒq’W|iƒ}|i	i
ƒ|SWd|iiƒXdS(sRemove and return an item from the queue.

        If optional args 'block' is true and 'timeout' is None (the default),
        block if necessary until an item is available. If 'timeout' is
        a positive number, it blocks at most 'timeout' seconds and raises
        the Empty exception if no item was available within that time.
        Otherwise ('block' is false), return an item if one is immediately
        available, else raise the Empty exception ('timeout' is ignored
        in that case).
        is#'timeout' must be a positive numbergN(RRR!RR%RRR&t_getRR(R(RR*R+R,R-R)((s!/usr/local/lib/python2.5/Queue.pytget“s,










cCs
|itƒS(s«Remove and return an item from the queue without blocking.

        Only get an item if one is immediately available. Otherwise
        raise the Empty exception.
        (R2R/(R((s!/usr/local/lib/python2.5/Queue.pyt
get_nowaitµscCs||_tƒ|_dS(N(RRtqueue(RR((s!/usr/local/lib/python2.5/Queue.pyRÂs	cCs
t|iƒS(N(tlenR4(R((s!/usr/local/lib/python2.5/Queue.pyRÆscCs|iS(N(R4(R((s!/usr/local/lib/python2.5/Queue.pyR!ÊscCs&|idjot|iƒ|ijS(Ni(RR5R4(R((s!/usr/local/lib/python2.5/Queue.pyR#ÎscCs|ii|ƒdS(N(R4tappend(RR)((s!/usr/local/lib/python2.5/Queue.pyR'ÒscCs
|iiƒS(N(R4tpopleft(R((s!/usr/local/lib/python2.5/Queue.pyR1ÖsN(RRRRRRR R"R$tTrueR%R.R0R2R3RRR!R#R'R1(((s!/usr/local/lib/python2.5/Queue.pyRs"					"	"	
					N((
RRR&tcollectionsRt__all__t	ExceptionRRR(((s!/usr/local/lib/python2.5/Queue.pys<module>s

Man Man