Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Grue3
on Jan 25, 2016
|
parent
|
context
|
favorite
| on:
Use JSON files as if they are Python modules
This seems like a huge case of "implicit over explicit". Ideally if you import package foo, it shouldn't affect anything but foo.bar
icebraining
on Jan 25, 2016
[–]
Python itself never enforced that, though. It's the libraries' responsibility to have a "register_import_hook()" function or similar instead of just doing so unannounced.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: