On Sat, Sep 15, 2012 at 8:19 PM, Daniel Holth <dho...@gmail.com> wrote: > I'd like to take this moment to note how awesome importing from > zipfile is. Did you know you can execute a zip file with Python, and > if it has a __main__.py in the root it will be executed, with the > zipfile's contents on the PYTHONPATH?
I've known this, but can you say a little about the caveats (e.g. why you wouldn't always want to store your packages as zip files)? For example, IIRC you can't really use __file__ from within such modules. --Chris _______________________________________________ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig