Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Or: `import math with abs as absolute, sqrt as square_root`




Oooh, bikeshedding! To me your `import math with x as y` reads like "import all of math, making all of its symbols visible, just renaming some of them". That's different from the intended "from math, import only x (maybe with a renaming)".



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: