summaryrefslogtreecommitdiff
path: root/tests/import/pkgstar_default/__init__.py
blob: 4947e4ce7f18000656e3a2b78c9823f1162f0137 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# When __all__ is undefined, star import should only
# show objects that do not start with an underscore


def visibleFun():
    return 42


class VisibleClass:
    def __init__(self):
        self._val = 42


def _hiddenFun():
    return -1


class _HiddenClass:
    def __init__(self):
        self._val = -1