[docs] [issue35986] print() documentation typo?

Steven D'Aprano report at bugs.python.org
Wed Feb 13 07:45:54 EST 2019


Steven D'Aprano <steve+python at pearwood.info> added the comment:

Which documentation are you referring to?

The docstring says:

print(value, ..., sep=' ', end='\n', file=sys.stdout, flush=False)

which is clearly a space. The docs here:

https://docs.python.org/3/library/functions.html#print

say something very similar:

print(*objects, sep=' ', end='\n', file=sys.stdout, flush=False)

but it is really hard to see the space on the website unless you look very carefully, because the font used is a proportional font instead of a monospaced font. So the space shown is a tiny little sliver of whitespace.

But if you copy and paste the function signature into your text editor, or somewhere you can set the font to use a fixed-width programmers font, you will see that there definitely is a space there.

So not a typo, but possibly a poor choice of font. It might be nice to rethink the choice of font for parameter lists.

----------
nosy: +steven.daprano

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35986>
_______________________________________


More information about the docs mailing list