From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 29128 invoked from network); 28 Jul 2021 03:42:33 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 28 Jul 2021 03:42:33 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1627443753; b=q106zqo2Xa99Xk+RiClz0U1W8u2C6XcPNhhDbApaDy0rBlwEewa0WnKJl99UHU29xJ13n3oiQH pnu2bG1HWm1GcijN6lfWGABTtrQ1TYHJy+Xa5Vxp3DT1h+LWKWbi3dw7pMU2A5n6OvDWzi7GWq ehnBfmRMbdLccrl/IMY92AzpI2AI42b9miuY6cNBkxzpmJDMQyt23qeHlDnjEb/5AKxBHOZ+5v IXlOgw8+3gdpgtK4SJ7ub0ti7953Vxc28IEPsL+du0WdslqTjyMrLnwMTNWaB3vf+0bWRIqQ2X 32ZNtNBUuVbj3EQi0qDfwFDvqnVNwOBBZWyJl4t3EOs7Dg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-oo1-f44.google.com) smtp.remote-ip=209.85.161.44; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1627443753; bh=RtsMup8K1Yf/YZrBAc+22v/HT1+CJjlciesIbq+wUYk=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:In-Reply-To:Content-Transfer-Encoding:Content-Type: MIME-Version:References:Message-ID:Subject:To:From:Date:DKIM-Signature: DKIM-Signature; b=IO2y5RG1ivlvhw4sUJpyM5D8oLNx9fyV5jR27PwL62OR0Bgm/MlWbJCs8jHVRpMEi0XncKAHcj Jrswk3DAnCt2F4DYlmLvekN42DWiVGtvGq1ReYQ+jYYBqjXLZ67H1xQtqByxtCQdlcvpLdW5yQ fY8gT7BNq2DM6LnmoTeNkFO+FNh3DyFpNG8BWCpo4/Y/f6wLX7H37eCis9PEHrp02VLI2q1pKv pO1uTZG1ppL56lTF7A5dgn83pjDxE7hpa+qYOfi104tR6MNWThKKuX9Z0a1raeYjrZKmqAv1Pq iBrf9ZwZfdKQhFq42nyd8s3+D0rjXjKOyU5pgsJh2RmWLg==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:In-Reply-To:Content-Transfer-Encoding :Content-Type:MIME-Version:References:Message-ID:Subject:To:From:Date: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=Amz6m769C6R/yCFUWaEHd0V0X5yZ3YSmyxzAlhcHHc8=; b=Xuy+Qs1elsTDX1DaosujTRDs62 VpY3/9AheBCa5cAAD5Mb805io3hF5jt5Yd0e62LN4xvSJvTp6RRRom6n+PVj6/zgqE8f/EQn1tfQf /1D1roRrMy0tn/8vRyvQkrSkCqzLctiwOS71nzCIWxolBrQnjlkjOC62dT6HblSAorF1PKfmihVls 4U4VS+KTBnTyKvkazozQmI6iHvsqQa4b82sckqk+POqZ0b9YVwEGdQIghSzS77zf0B6I92U7nXQ/q oefVPfaKsjC2/gmqeK2XjK9+ZWd6dZv5VfJY9eVByQRVecQY18TzDhTukDcenqTJx1etYbtIFY2qj UktHX+Jg==; Received: from authenticated user by zero.zsh.org with local id 1m8aSl-0004zl-7M; Wed, 28 Jul 2021 03:42:31 +0000 Authentication-Results: zsh.org; iprev=pass (mail-oo1-f44.google.com) smtp.remote-ip=209.85.161.44; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-oo1-f44.google.com ([209.85.161.44]:36777) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1m8aSX-0004gY-2z; Wed, 28 Jul 2021 03:42:17 +0000 Received: by mail-oo1-f44.google.com with SMTP id z3-20020a4a98430000b029025f4693434bso346684ooi.3 for ; Tue, 27 Jul 2021 20:42:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mail-followup-to:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=Amz6m769C6R/yCFUWaEHd0V0X5yZ3YSmyxzAlhcHHc8=; b=G/GEmFZEU/+1W0otK4plX9exGcRvlPq5pN16thfO9gXPm5NEiuEDNBA7vql+zkYY5f VKEKu0TDeI+qWfVaS5nq5/2L6LHO686etRfrUl4dB5xDs1M/BD/+GvgvmKmRCtgOZtuz sYoVNyOogvJJVatME/fZ0yBJh5IoJWjP9PH6bzi3A1VnHZdZVHSWR03qaxOnLIsC5eaj eAQrgwqr8NmerhMSj2cSmnbucili+/Alt52DRlpqbXwI7qd23UKtw0uI2wxmK7eGDZUu a6RZ8yOqarlVPF3ILww+fjXwmwk1HiYBjtuLgnbQzrmqTLmhEAi98U3D+LYkACggovaC qm5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mail-followup-to :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to; bh=Amz6m769C6R/yCFUWaEHd0V0X5yZ3YSmyxzAlhcHHc8=; b=BryGM7da57alOemhyBmXp1S8BCNgIyp47cyLGCsSp3GMZeb+OHCgOzROlC2o12J8Hb YN8mu+cQd+rux7DhDE6xbrwKYi01+9IVfkfqyvnyayNOpyGpWd6GqZ9xhCTRFMYBrBCP q2cQKUGRuxmf6hufj3HbfJA4x6KR+2PtFhfumyYnFavazAuz8Vx+c4wC8DmbzSQvrXof wcppWuPtLwux0fOOWIYOXQ7a+xb8H0q+XWF2BA2tv+GwR/ONH/ZETSR5oW7lsckOugi8 QkX+AUg0et3T4ytFTK74QGG2pmmkx6bRkACp8zxObjm9C8RlIffenPgczY6q1STeOR4+ cWcw== X-Gm-Message-State: AOAM533ef3Nl2ssjK4n+yA179xjuIXvT+mmG3KYSvDBG6NamnlpWpGUk Gz5QZQgpqk9bgIhoTELVGM7K0PqQDlE= X-Google-Smtp-Source: ABdhPJz8QIGBCLXaYND85TxkjYFA9kZVjYeDQ9OuM8wfI2EAsr1kYGxyMmc7D2O85H6LtxuL2rzPlQ== X-Received: by 2002:a4a:b189:: with SMTP id c9mr15724777ooo.30.1627443735561; Tue, 27 Jul 2021 20:42:15 -0700 (PDT) Received: from CptOrmolo.darkstar (cpe-70-113-147-195.tx.res.rr.com. [70.113.147.195]) by smtp.gmail.com with ESMTPSA id m83sm913516oig.25.2021.07.27.20.42.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Jul 2021 20:42:15 -0700 (PDT) Date: Tue, 27 Jul 2021 22:42:13 -0500 From: Matthew Martin To: zsh-workers@zsh.org Subject: Re: [PATCH] _python: add missing options Message-ID: Mail-Followup-To: zsh-workers@zsh.org References: <20210726221050.764873-1-stepnem@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210726221050.764873-1-stepnem@gmail.com> X-Seq: 49206 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: On Tue, Jul 27, 2021 at 12:10:50AM +0200, Štěpán Němec wrote: > --- > Completion/Unix/Command/_python | 7 +++++-- > 1 file changed, 5 insertions(+), 2 deletions(-) > > diff --git a/Completion/Unix/Command/_python b/Completion/Unix/Command/_python > index f10106f9b4d9..05d26f2e7652 100644 > --- a/Completion/Unix/Command/_python > +++ b/Completion/Unix/Command/_python > @@ -1,7 +1,7 @@ > #compdef -P python[0-9.]# > > # Python 2.7 > -# Python 3.4 > +# Python 3.9 > > local curcontext="$curcontext" state state_descr line > typeset -A opt_args > @@ -11,7 +11,9 @@ if _pick_variant python3=Python\ 3 python2 --version; then > args=( > '(-bb)-b[issue warnings about str(bytes_instance), str(bytearray_instance) and comparing bytes/bytearray with str]' > '(-b)-bb[issue errors about str(bytes_instance), str(bytearray_instance) and comparing bytes/bytearray with str]' > + '--check-hash-based-pycs[configure how Python evaluates up-to-dateness of hash-based .pyc files]:mode' Should probably offer the allowed modes here '--check-hash-based-pycs[configure how Python evaluates up-to-dateness of hash-based .pyc files]:mode:(default always never)' > "-I[isolate Python from the user's environment]" > + '-q[do not print version and copyright messages]' > '-X[set implementation-specific option]:option' > ) > else > @@ -37,7 +39,8 @@ _arguments -C -s -S "$args[@]" \ > "-s[don't add user site directory to sys.path]" \ > "-S[don't imply 'import site' on initialization]" \ > '-u[unbuffered binary stdout and stderr]' \ > - '-v[verbose (trace import statements)]' \ > + '(-vv)-v[trace module initialization and cleanup]' \ > + '(-v)-vv[in addition to -v, trace all files checked when searching for a module]' \ --help only mentions "can be supplied multiple times to increase verbosity" not what each count does. I'm not sure we should be more specific than the --help output. Changing the spec to *-v may suffice. > '(1 * -)-V[display version information]' \ > '-W+[warning control]:warning filter (action\:message\:category\:module\:lineno):(default always ignore module once error)' \ > '-x[skip first line of source, allowing use of non-Unix forms of #!cmd]' \ > > base-commit: f8ec33c453159ad848d9b1a28782c5df7f0cc944 > -- > 2.32.0 > >