1 | 2  Next

All Samples(3130)  |  Call(2573)  |  Derive(0)  |  Import(557)
allocate_lock() -> lock object
(allocate() is an obsolete synonym)

Create a new lock object.  See LockType.__doc__ for information about locks.

All Samples(2799)  |  Call(2384)  |  Derive(0)  |  Import(415)
No Document.

All Samples(1495)  |  Call(1151)  |  Derive(0)  |  Import(344)
No Document.

All Samples(1005)  |  Call(753)  |  Derive(0)  |  Import(252)
No Document.


All Samples(604)  |  Call(230)  |  Derive(196)  |  Import(178)
Thread-local data

All Samples(489)  |  Call(390)  |  Derive(0)  |  Import(99)
No Document.

All Samples(256)  |  Call(207)  |  Derive(0)  |  Import(49)
No Document.

All Samples(254)  |  Call(198)  |  Derive(0)  |  Import(56)
No Document.

All Samples(244)  |  Call(244)  |  Derive(0)  |  Import(0)
No Document.

All Samples(174)  |  Call(169)  |  Derive(0)  |  Import(5)
No Document.

All Samples(160)  |  Call(93)  |  Derive(0)  |  Import(67)
No Document.

All Samples(115)  |  Call(90)  |  Derive(0)  |  Import(25)
No Document.

All Samples(102)  |  Call(102)  |  Derive(0)  |  Import(0)
stack_size([size]) -> size

Return the thread stack size used when creating new threads.  The
optional size argument specifies the stack size (in bytes) to be used
for subsequently created threads, and must be 0 (use platform or
configured default) or a positive integer value of at least 32,768 (32k).
If changing the thread stack size is unsupported, a ThreadError
exception is raised.  If the specified size is invalid, a ValueError
exception is raised, and the stack size is unmodified.  32k bytes
 currently the minimum supported stack size value to guarantee(more...)

All Samples(19)  |  Call(0)  |  Derive(18)  |  Import(1)
Call a function after a specified number of seconds:

t = Timer(30.0, f, args=[], kwargs={})
t.start()
t.cancel() # stop the timer's action if it's still waiting

All Samples(40)  |  Call(38)  |  Derive(0)  |  Import(2)
get_ident() -> integer

Return a non-zero integer that uniquely identifies the current thread
amongst other threads that exist simultaneously.
This may be used to identify per-thread resources.
Even though on some platforms threads identities may appear to be
allocated consecutive numbers starting at 1, this behavior should not
be relied upon, and the number should be seen purely as a magic cookie.
A thread's identity may be reused for another thread after it exits.

All Samples(23)  |  Call(0)  |  Derive(18)  |  Import(5)
No Document.

All Samples(16)  |  Call(1)  |  Derive(6)  |  Import(9)
No Document.

All Samples(3)  |  Call(0)  |  Derive(0)  |  Import(3)
dict() -> new empty dictionary
dict(mapping) -> new dictionary initialized from a mapping object's
    (key, value) pairs
dict(iterable) -> new dictionary initialized as if via:
    d = {}
    for k, v in iterable:
        d[k] = v
dict(**kwargs) -> new dictionary initialized with the name=value pairs
    in the keyword argument list.  For example:  dict(one=1, two=2)

  1 | 2  Next