Am 09.02.19 um 14:40 schrieb Stefan Ram:
Piet van Oostrum <pie...@vanoostrum.org> writes:
r...@zedat.fu-berlin.de (Stefan Ram) writes:
The slash »/« as used in the documentation
f( x, /, y )
What are you talking about? What documentation? It seems to
me you are talking about a completely different programming
language, not python.

|>>> __import__( 'sys' ).version
|'3.7.0 ~~~'
|>>> help( __import__( 'math' ).sin )
|Help on built-in function sin in module math:
|
|sin(x, /)
|    Return the sine of x (measured in radians).

   ~~~ = a part of the transcript that was omitted by me

Is this a new thing in 3.7? Because here I get:

Apfelkiste:Tcl2018 chris$ python3
Python 3.6.1 |Anaconda 4.4.0 (x86_64)| (default, May 11 2017, 13:04:09)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> __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
--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to