lihaoyi / macropy

Macros in Python: quasiquotes, case classes, LINQ and more!
3.28k stars 178 forks source link

Namespacing cleanup! #21

Closed lihaoyi closed 11 years ago

lihaoyi commented 11 years ago
from blah import *

Is awesome. However, it also dumps waaaaay more stuff in your local namespace than you need; for example it is currently dumping the contents of the ast module into every file that uses macros.

The dumb thing to do would be to make the macro smart enough to only include additional imports for the "additional" things it needs. The better thing to do would be just to have a proper __all__ in all our files so import * does the right thing.

lihaoyi commented 11 years ago

Fixed dfd24ef50b92b43dcc719198cd3d9189d5b6365a