Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
maccman
on July 2, 2011
|
parent
|
context
|
favorite
| on:
CommonJS Is The Future For Rails JavaScript Packag...
Yes, that's correct. Importing is similar to require(), although there's no explicit exporting.
MBlume
on July 2, 2011
[–]
setting module-level __all__ can modify what gets pulled in a wild import, but that's about it.
masklinn
on July 2, 2011
|
parent
[–]
It's also used by `help()` (and pydoc): if there's an __all__, help will only pull the docstrings of the stuff in __all__. `dir()`, on the other hand, does not care.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: