PEP 635: Note use of ? in IPython/Jupyter

This commit is contained in:
Guido van Rossum 2020-10-19 17:20:56 -07:00
parent e9f4d2e19c
commit 3619926f14
1 changed files with 4 additions and 0 deletions

View File

@ -801,6 +801,10 @@ chaining" in TypeScript (the latter meaning has also been proposed for
Python by PEP 505). An as yet unnamed PEP proposes it to mark
optional types, e.g. ``int?``.
Another common use of ``?`` in programming systems is "help", for
example, in IPython and Jupyter Notebooks and many interactive
command-line utilities.
In addition, this would put Python in a rather unique position:
The underscore is as a wildcard pattern in *every*
programming language with pattern matching that we could find