Covertir un numero en bytes a Kb, Mb ...
Bases: dict
Bases: dict
Get the actual value bounded to each formal parameter when calling func(*args,**kwds).
It works for methods too (bounded, unbounded, staticmethods, classmethods).
and **kwargs if present) of the function to the respective bounded value.
provided (i.e. using the respective default value)
>>> def func(a, b='foo', c=None, *x, **y):
... pass
>>> getcallargs(func, 5)
({'a': 5, 'y': {}, 'c': None, 'b': 'foo', 'x': ()}, ('b', 'c'))
>>> getcallargs(func, 5, 'foo')
({'a': 5, 'y': {}, 'c': None, 'b': 'foo', 'x': ()}, ('c',))
>>> getcallargs(func, 5, c=['a', 'b'])
({'a': 5, 'y': {}, 'c': ['a', 'b'], 'b': 'foo', 'x': ()}, ('b',))
>>> getcallargs(func, 5, 6, 7, 8)
({'a': 5, 'y': {}, 'c': 7, 'b': 6, 'x': (8,)}, ())
>>> getcallargs(func, 5, z=3, b=2)
({'a': 5, 'y': {'z': 3}, 'c': None, 'b': 2, 'x': ()}, ('c',))
Generator over all subclasses of a given class, in depth first order.
>>> list(itersubclasses(int)) == [bool]
True
>>> class A(object): pass
>>> class B(A): pass
>>> class C(A): pass
>>> class D(B,C): pass
>>> class E(D): pass
>>>
>>> for cls in itersubclasses(A):
... print(cls.__name__)
B
D
E
C
>>> # get ALL (new-style) classes currently defined
>>> [cls.__name__ for cls in itersubclasses(object)]
['type', ...'tuple', ...]
Bases: nabla.wx.window.Window
Bases: wx._windows.Frame
Bases: object
Open a SQLite3 file Types: TEXT, INTEGER, FLOAT, BLOB, NULL
Cuantos Kb ocupa la base de datos
Bases: object
Bases: threading.Thread
A worker thread that takes directory names from a queue, finds all files in them recursively and reports the result.
Input is done by placing directory names (as strings) into the Queue passed in dir_q.
Output is done by placing tuples into the Queue passed in result_q. Each tuple is (thread name, dirname, [list of files]).
Ask the thread to stop by calling its join() method.