Beispiel #1
0
def run():
    import sys

    builtins = sys.modules["builtins"]

    def guess_kind(x: t.Any) -> t.Optional[t.Literal["object"]]:
        if (
            callable(x)
            and hasattr(x, "__name__")
            and getattr(builtins, x.__name__, None) != x
        ):
            return "object"
        return None

    w = get_walker(guess_kind=guess_kind)
    for x in w.walk(kinds=["callable", "object"]):
        print(get_fullname(x))
Beispiel #2
0
def run():
    w = get_walker()
    for cls in w.walk():
        print(get_fullname(cls))
Beispiel #3
0
def run():
    w = get_walker()
    for x in w.walk(kinds=["callable", "object"]):
        print(get_fullname(x))
Beispiel #4
0
def run():
    w = get_walker()
    for cls in w.walk(kinds=["object", "service"]):
        print(guess_mark(cls), cls)