The local patch I have for PEP 366 is somewhat stale, and before I bring it up to date with SVN head, I'd like to close out the issue raised a while back regarding making zip files executable [1]. The original proposal was for a new command line switch, but PJE came up with a patch (attached to the roundup tracker item) that uses the existing import machinery to avoid the need for the extra command line switch (by checking if the argument is a valid sys.path entry before checking to see if it is an executable script). I personally like the idea (and PJE's approach), and the performance impact on script startup time appears to be negligible (although I haven't performed any high precision measurements - I'm just using the Linux time utility on a short test script with and without the patch). Are there any objections to my committing this? Cheers, Nick. [1] http://bugs.python.org/issue1739468 -- Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia --------------------------------------------------------------- http://www.boredomandlaziness.org
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4