The slash "/" as used in the documentation

Piet van Oostrum piet-l at vanoostrum.org
Sat Feb 9 14:10:40 EST 2019


Christian Gollwitzer <auriocus at gmx.de> writes:

>>>> __import__( 'sys' ).version
> '3.6.1 |Anaconda 4.4.0 (x86_64)| (default, May 11 2017, 13:04:09) \n[GCC
> 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)]'
>>>> help( __import__( 'math' ).sin )
>
>
> Help on built-in function sin in module math:
>
> sin(...)
>     sin(x)
>
>     Return the sine of x (measured in radians).
>
>
> The help is actually not written out to the terminal but, displayed in
> the pager (less), and the first sin(...) is typeset in boldface.
>
> 	Christian

Even simpler:

>>> help(len)
help(len)
Help on built-in function len in module builtins:

len(obj, /)
    Return the number of items in a container.

both in python 3.6 and 3.7.

This is weird.
-- 
Piet van Oostrum <piet-l at vanoostrum.org>
WWW: http://piet.vanoostrum.org/
PGP key: [8DAE142BE17999C4]


More information about the Python-list mailing list