Module Import alias Import alias Assign NameStore ListLoad Str Str Assign NameStore CompareGtE SubscriptLoad AttributeLoad NameLoad attr Index Num Num Assign NameStore CompareEq Call AttributeLoad Call AttributeLoad NameLoad attr attr Str FunctionDef arguments args NameParam defaults body If Call NameLoad NameLoad Str body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Str handlers ExceptHandler type NameLoad body Pass Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body If Call NameLoad NameLoad Str body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Str handlers ExceptHandler type NameLoad body Pass orelse Assign NameStore Call NameLoad NameLoad Return NameLoad decorator_list If NameLoad body ImportFrom alias ImportFrom alias alias Assign NameStore NameLoad FunctionDef arguments args NameParam defaults kwarg body Return Call NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults kwarg body Return Call NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults kwarg body Return Call NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list Assign NameStore NameLoad orelse Assign NameStore NameLoad ImportFrom alias alias ImportFrom alias identifier ImportFrom alias alias FunctionDef arguments args NameParam defaults kwarg body Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults kwarg body Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults kwarg body Return Call AttributeLoad NameLoad attr NameLoad decorator_list Assign NameStore NameLoad ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults Num body If CompareLt NameLoad Num body Raise Call NameLoad Str Assign AttributeStore NameLoad attr Call NameLoad Call NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If BoolOpAnd UnaryOpNot NameLoad CompareIsNot NameLoad NameLoad body Raise Call NameLoad Str Assign NameStore NameLoad Assign NameStore NameLoad With AttributeLoad NameLoad attr body While CompareEq AttributeLoad NameLoad attr Num body If UnaryOpNot NameLoad body Break If CompareIsNot NameLoad NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore BinOpAdd Call NameLoad NameLoad orelse Assign NameStore BinOpSub NameLoad Call NameLoad If CompareLtE NameLoad Num body Break Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse AugAssignSub AttributeStore NameLoad attr Num Assign NameStore NameLoad Return NameLoad decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Str With AttributeLoad NameLoad attr body AugAssignAdd AttributeStore NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A sys N/A platform N/A __all__ N/A PY3 Semaphore N/A PY3 N/A N/A N/A sys version_info N/A 0 3 N/A IS_PYPY N/A N/A N/A N/A N/A platform python_implementation lower pypy get_bytes N/A N/A value N/A N/A N/A N/A hasattr value encode N/A N/A N/A N/A value N/A N/A value encode utf-8 N/A N/A N/A UnicodeError N/A N/A N/A value N/A get_string N/A N/A value N/A N/A N/A N/A hasattr value decode N/A N/A N/A N/A value N/A N/A value decode utf-8 N/A N/A N/A UnicodeError N/A N/A N/A N/A value N/A str value N/A value N/A N/A PY3 N/A threading Semaphore queue Queue Empty N/A range range iteritems N/A N/A d N/A kw N/A N/A N/A iter N/A N/A d items kw N/A itervalues N/A N/A d N/A kw N/A N/A N/A iter N/A N/A d values kw N/A iterkeys N/A N/A d N/A kw N/A N/A N/A iter N/A N/A d keys kw N/A N/A buffer memoryview N/A N/A range xrange threading Condition Lock time time _time Queue Queue Empty iteritems N/A N/A d N/A kw N/A N/A N/A N/A d iteritems kw N/A itervalues N/A N/A d N/A kw N/A N/A N/A N/A d itervalues kw N/A iterkeys N/A N/A d N/A kw N/A N/A N/A N/A d iterkeys kw N/A N/A buffer buffer Semaphore N/A object N/A N/A This class implements semaphore objects.

        Semaphores manage a counter representing the number of release() calls minus
        the number of acquire() calls, plus an initial value. The acquire() method
        blocks if necessary until it can return without making the counter
        negative. If not given, value defaults to 1.

        Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011,
        2012, 2013, 2014, 2015 Python Software Foundation.  All rights reserved.
         __init__ N/A N/A self value N/A 1 N/A N/A N/A value 0 N/A N/A N/A ValueError semaphore initial value must be >= 0 N/A N/A self _cond N/A Condition N/A Lock N/A N/A self _value value N/A acquire N/A N/A self blocking timeout N/A True None N/A N/A Acquire a semaphore, decrementing the internal counter by one.

            When invoked without arguments: if the internal counter is larger than
            zero on entry, decrement it by one and return immediately. If it is zero
            on entry, block, waiting until some other thread has called release() to
            make it larger than zero. This is done with proper interlocking so that
            if multiple acquire() calls are blocked, release() will wake exactly one
            of them up. The implementation may pick one at random, so the order in
            which blocked threads are awakened should not be relied on. There is no
            return value in this case.

            When invoked with blocking set to true, do the same thing as when called
            without arguments, and return true.

            When invoked with blocking set to false, do not block. If a call without
            an argument would block, return false immediately; otherwise, do the
            same thing as when called without arguments, and return true.

            When invoked with a timeout other than None, it will block for at
            most timeout seconds.  If acquire does not complete successfully in
            that interval, return false.  Return true otherwise.

             N/A N/A N/A blocking N/A timeout None N/A N/A N/A ValueError can't specify timeout for non-blocking acquire N/A rc False N/A endtime None N/A N/A self _cond N/A N/A N/A N/A self _value 0 N/A N/A N/A blocking N/A N/A N/A N/A timeout None N/A N/A N/A endtime None N/A N/A endtime N/A N/A _time timeout N/A N/A timeout N/A endtime N/A _time N/A N/A timeout 0 N/A N/A N/A N/A N/A N/A self _cond wait timeout N/A N/A N/A self _value 1 N/A rc True N/A rc N/A N/A __enter__ acquire release N/A N/A self N/A N/A N/A Release a semaphore, incrementing the internal counter by one.

            When the counter is zero on entry and another thread is waiting for it
            to become larger than zero again, wake up that thread.

             N/A N/A self _cond N/A N/A N/A self _value 1 N/A N/A N/A N/A self _cond notify N/A __exit__ N/A N/A self t v tb N/A N/A N/A N/A N/A self release N/A N/A