From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26754 invoked from network); 27 Feb 2003 01:59:41 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 27 Feb 2003 01:59:41 -0000 Received: (qmail 18795 invoked by alias); 27 Feb 2003 01:59:34 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 18305 Received: (qmail 18788 invoked from network); 27 Feb 2003 01:59:33 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 27 Feb 2003 01:59:33 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [203.109.249.143] by sunsite.dk (MessageWall 1.0.8) with SMTP; 27 Feb 2003 1:59:32 -0000 Received: from p229-tnt2.syd.ihug.com.au (localhost.localdomain) [203.173.130.229] by grunt23.ihug.com.au with esmtp (Exim 3.35 #1 (Debian)) id 18oDKd-0007uI-00; Thu, 27 Feb 2003 12:59:31 +1100 Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by localhost.localdomain (8.12.5/8.12.5) with ESMTP id h1R21a9P014501 for ; Thu, 27 Feb 2003 13:01:37 +1100 Received: (from doug@localhost) by localhost.localdomain (8.12.5/8.12.5/Submit) id h1R21YWY014499 for zsh-workers@sunsite.dk; Thu, 27 Feb 2003 13:01:34 +1100 X-Authentication-Warning: localhost.localdomain: doug set sender to djkea2@mugca.its.monash.edu.au using -f Date: Thu, 27 Feb 2003 13:01:34 +1100 From: Doug Kearns To: zsh-workers@sunsite.dk Subject: PATCH: python completion Message-ID: <20030227020134.GG26325@localhost.localdomain> Mail-Followup-To: zsh-workers@sunsite.dk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i A new completion function for python. Regards, Doug Index: Completion/Unix/Command/_python =================================================================== RCS file: Completion/Unix/Command/_python diff -N Completion/Unix/Command/_python --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ Completion/Unix/Command/_python 27 Feb 2003 01:55:18 -0000 @@ -0,0 +1,26 @@ +#compdef python + +# Python 2.2.2 + +_arguments -s -S \ + '(1 -)-c+[program passed in as string (terminates option list)]:python command:' \ + '-d[debug output from parser (also PYTHONDEBUG=x)]' \ + '-E[ignore environment variables (such as PYTHONPATH)]' \ + '(1 * -)-h[print this help message and exit]' \ + '-i[inspect interactively after running script (also PYTHONINSPECT=x)]' \ + '-O[optimize generated bytecode (a tad; also PYTHONOPTIMIZE=x)]' \ + '-OO[remove doc-strings in addition to the -O optimizations]' \ + '-Q+[division options: -Qold (default), -Qwarn, -Qwarnall, -Qnew]:division option:(old warn warnall new)' \ + "-S[don't imply 'import site' on initialization]" \ + '-t[issue warnings about inconsistent tab usage]' \ + '-tt[issue errors about inconsistent tab usage]' \ + '-u[unbuffered binary stdout and stderr (also PYTHONUNBUFFERED=x)]' \ + '-v[verbose (trace import statements) (also PYTHONVERBOSE=x)]' \ + '(1 * -)-V[print the Python version number and exit]' \ + '-W+[warning control (arg is action:message:category:module:lineno)]:warning filter:(default always ignore module once error)' \ + '-x[skip first line of source, allowing use of non-Unix forms of #!cmd]' \ + '(1 -)-[program read from stdin (default; interactive mode if a tty)]' \ + '(-)1:script file:_files -g \*.py\(\|c\|o\)' \ + '*:script argument:_files' && return + +return 1