Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
iguessthislldo
on Jan 13, 2018
|
parent
|
context
|
favorite
| on:
Ask HN: Forced to choose Python
You could create a __init__.py file that imports everything from each of those files:
from .aaa import * from .bbb import * from .ccc import *
Then in each of the other files (aaa.py, etc) put:
from . import *
true_religion
on Jan 13, 2018
[–]
Thats a circular import and thus not guaranteed to work.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: