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   |   [EMAIL PROTECTED]   |   Brisbane, Australia
---------------------------------------------------------------
             http://www.boredomandlaziness.org
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to