News for hackers. Stuff that matters.
Re:The Zen of Python (by example) by tzury on Tuesday March 13, 2012 @02:13PM (#3699625)

    from menagerie.models import cat as cat_models
This is not recommended at all
Re:The Zen of Python (by example) by iclelland on Tuesday March 13, 2012 @03:18PM (#3699904)
Also, it should have read

    from menagerie.cat import models as cat_models
    from menagerie.dog import models as dog_models
    from menagerie.mouse import models as mouse_models
Because otherwise it doesn't match the code in the first example for #3, and also because if your packages are ordered that way, then why not just

    from menagerie.models import cat, dog, mouse
and forget about changing the local module name.
Re:The Zen of Python (by example) by zackattack on Tuesday March 13, 2012 @02:22PM (#3699658)
By whom, and why not? I like it. It's explicit. Self-documenting.