blob: 433ddc8e97639af9ec683c32f48b520801a5556f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
__all__ = ("publicFun2", "PublicClass2")
# Definitions below should always be imported by a star import
def publicFun2():
return 2
class PublicClass2:
def __init__(self):
self._val = 2
# If __all__ support is enabled, definitions below
# should not be imported by a star import
def unlistedFun2():
return 0
class UnlistedClass2:
def __init__(self):
self._val = 0
|