INNER CODE UNIT · Python

d

dhondta/python-codext · src/codext/__init__.py:36

    d = {-1: list_encodings() if include else []}
    for n, i in enumerate(items):
        try:
            depth, i = i.split(":")
            depth = int(depth.strip().replace("~", "-"))
            if depth < 0:
                depth = -1
        except ValueError:
            if n == 0:
                d[-1] = []
            depth = -1
        d.setdefault(depth, [])
        d[depth].append(i.strip())
    return d


def __print_tabular(lst, space=4):
    try:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…