* [PATCH 0/2] Update python and pydoc completions for version 3.11
@ 2023-01-25 5:48 Shohei YOSHIDA
2023-01-25 5:48 ` [PATCH 1/2] Update python3 completion " Shohei YOSHIDA
2023-01-25 5:48 ` [PATCH 2/2] Update pydoc " Shohei YOSHIDA
0 siblings, 2 replies; 4+ messages in thread
From: Shohei YOSHIDA @ 2023-01-25 5:48 UTC (permalink / raw)
To: zsh-workers; +Cc: Shohei YOSHIDA
References
- https://docs.python.org/3/using/cmdline.html
- https://docs.python.org/3/library/pydoc.html
Shohei YOSHIDA (2):
Update python3 completion for version 3.11
Update pydoc for version 3.11
Completion/Unix/Command/_pydoc | 5 +++--
Completion/Unix/Command/_python | 6 +++++-
2 files changed, 8 insertions(+), 3 deletions(-)
--
2.37.2
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/2] Update python3 completion for version 3.11
2023-01-25 5:48 [PATCH 0/2] Update python and pydoc completions for version 3.11 Shohei YOSHIDA
@ 2023-01-25 5:48 ` Shohei YOSHIDA
2023-01-27 18:33 ` Daniel Shahaf
2023-01-25 5:48 ` [PATCH 2/2] Update pydoc " Shohei YOSHIDA
1 sibling, 1 reply; 4+ messages in thread
From: Shohei YOSHIDA @ 2023-01-25 5:48 UTC (permalink / raw)
To: zsh-workers; +Cc: Shohei YOSHIDA
---
Completion/Unix/Command/_python | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/Completion/Unix/Command/_python b/Completion/Unix/Command/_python
index 2711b8fd3..6e209a199 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.9
+# Python 3.11
local curcontext="$curcontext" state state_descr line _compskip="$_compskip"
typeset -A opt_args
@@ -12,7 +12,11 @@ if _pick_variant python3=Python\ 3 python2 --version; then
'(-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:(always default never)'
+ '--help-env[print help about Python environment variables and exit]'
+ '--help-xoptions[print help about implementation-specific -X options and exit]'
+ '--help-all[print complete help information and exit]'
"-I[isolate Python from the user's environment]"
+ '-P[do not prepend a potentially unsafe path to sys.path]'
'-q[do not print version and copyright messages]'
'-X[set implementation-specific option]:option'
)
--
2.37.2
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 2/2] Update pydoc for version 3.11
2023-01-25 5:48 [PATCH 0/2] Update python and pydoc completions for version 3.11 Shohei YOSHIDA
2023-01-25 5:48 ` [PATCH 1/2] Update python3 completion " Shohei YOSHIDA
@ 2023-01-25 5:48 ` Shohei YOSHIDA
1 sibling, 0 replies; 4+ messages in thread
From: Shohei YOSHIDA @ 2023-01-25 5:48 UTC (permalink / raw)
To: zsh-workers; +Cc: Shohei YOSHIDA
---
Completion/Unix/Command/_pydoc | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/Completion/Unix/Command/_pydoc b/Completion/Unix/Command/_pydoc
index 677c96ad6..626c528cd 100644
--- a/Completion/Unix/Command/_pydoc
+++ b/Completion/Unix/Command/_pydoc
@@ -6,13 +6,14 @@ local -a args
args=(
'(- *)-k[search keyword]:keyword'
- '(-k -g -w *)-p[start web server on specified port]:port number'
+ '(-k -g -w)-p[start web server on specified port]:port number'
'(-)-w[write out HTML in current directory]'
'(-)*: :->lookup'
)
if _pick_variant pydoc3='pydoc3 -b' pydoc2 -h; then
- args+=( '(-k -w *)-b[start server and open browser]' )
+ args+=( '(-k -w)-b[start server and open browser]' )
+ args+=( '(-k -w)-n[start web server with the given hostname]:hostname' )
else
args+=( '(- *)-g[start gui]' )
fi
--
2.37.2
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/2] Update python3 completion for version 3.11
2023-01-25 5:48 ` [PATCH 1/2] Update python3 completion " Shohei YOSHIDA
@ 2023-01-27 18:33 ` Daniel Shahaf
0 siblings, 0 replies; 4+ messages in thread
From: Daniel Shahaf @ 2023-01-27 18:33 UTC (permalink / raw)
To: Shohei YOSHIDA; +Cc: zsh-workers
Applied this one, thanks. 2/2 remains outstanding for someone else to
review and apply.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-01-27 18:33 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-25 5:48 [PATCH 0/2] Update python and pydoc completions for version 3.11 Shohei YOSHIDA
2023-01-25 5:48 ` [PATCH 1/2] Update python3 completion " Shohei YOSHIDA
2023-01-27 18:33 ` Daniel Shahaf
2023-01-25 5:48 ` [PATCH 2/2] Update pydoc " Shohei YOSHIDA
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).