zsh-workers
 help / color / mirror / code / Atom feed
From: Doug Kearns <djkea2@mugca.its.monash.edu.au>
To: zsh-workers@sunsite.dk
Subject: PATCH: python completion
Date: Thu, 27 Feb 2003 13:01:34 +1100	[thread overview]
Message-ID: <20030227020134.GG26325@localhost.localdomain> (raw)

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


                 reply	other threads:[~2003-02-27  1:59 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030227020134.GG26325@localhost.localdomain \
    --to=djkea2@mugca.its.monash.edu.au \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).