complete-c python -s m -d'Run library module as a script (terminates option list)'-xa'(python -c "import pkgutil; print(\'\n\'.join([p[1] for pin pkgutil.iter_modules()]))")'
# We have to detect this at runtime because pyenv etc can change
# what `python` refers to.
complete-c python -n'python -V 2>&1 | string match -rq "^.*\s2"'-s3-d'Warn about Python 3.x incompatibilities that 2to3 cannot trivially fix'
complete-c python -n'python -V 2>&1 | string match -rq "^.*\s2"'-s t --description"Warn on mixed tabs and spaces"
complete-c python -n'python -V 2>&1 | string match -rq "^.*\s2"'-s Q -x-a"old new warn warnall"--description"Division control"
complete-c python -n'python -V 2>&1 | string match -rq "^.*\s3"'-s q --description'Don\'t print version and copyright messages on interactive startup'
complete-c python -n'python -V 2>&1 | string match -rq "^.*\s3"'-s X -x-d'Set implementation-specific option'
complete-c python -n'python -V 2>&1 | string match -rq "^.*\s3"'-s b -d'Issue warnings about str(bytes_instance), str(bytearray_instance) and comparing bytes/bytearray with str'