K
Size: a a a
K
ᅠ
from . import bar
from .bar import foo
__package__
.foo/
__init__.py
bar/
__init__.py
main.py
__package__
for foo/__init__.py
is set to "foo"
, and for foo/bar/__init__.py
its "foo.bar"
.main.py
__package__
isn't set, that's because main.py
is not in a package.from .bar import buz
within foo/__init__.py
, it simply appends "bar"
to foo/__init__.py
's __package__
attribute, esentially it gets translated to from foo.bar import buz
.__package__
, e.g:>>> __package__ = "re"
>>> from . import compile
>>> compile
<function compile at 0x10e0ee550>
$
КП
AF
$
C
Д
x = cur.execute("SELECT status_id FROM applications WHERE application_id = ?", (2,))
z
<Ч
Д
Д
K
b
J
<Ч
k
J