Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
standard library modules
#5
There are no direct link to source code as is written in C.
Code is on GitHub if want to look mathmodule.c
In interactive shell it work the same.
>>> import math
>>> 
>>> dir(math)
['__doc__',
 '__loader__',
 '__name__',
 '__package__',
 '__spec__',
 'acos',
 'acosh',
 'asin',
 'asinh',
 'atan',
 'atan2',
 'atanh',
 'ceil',
 'copysign',
 'cos',
 'cosh',
 'degrees',
 'e',
 'erf',
 'erfc',
 'exp',
 'expm1',
 'fabs',
 'factorial',
 'floor',
 'fmod',
 'frexp',
 'fsum',
 'gamma',
 'gcd',
 'hypot',
 'inf',
 'isclose',
 'isfinite',
 'isinf',
 'isnan',
 'ldexp',
 'lgamma',
 'log',
 'log10',
 'log1p',
 'log2',
 'modf',
 'nan',
 'pi',
 'pow',
 'radians',
 'remainder',
 'sin',
 'sinh',
 'sqrt',
 'tan',
 'tanh',
 'tau',
 'trunc']
>>> 
>>> math.asin.__doc__
'Return the arc sine (measured in radians) of x.'

>>> help(math.sqrt)
Help on built-in function sqrt in module math:

sqrt(x, /)
    Return the square root of x.
With pdir2 it look like this.
[Image: BoDGre.png]
Reply


Messages In This Thread
standard library modules - by chpyel - May-10-2020, 10:56 AM
RE: standard library modules - by snippsat - May-10-2020, 12:35 PM
RE: standard library modules - by ndc85430 - May-10-2020, 01:11 PM
RE: standard library modules - by chpyel - May-10-2020, 02:01 PM
RE: standard library modules - by snippsat - May-10-2020, 02:58 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  python standard way of importing library mg24 1 980 Nov-15-2022, 01:41 AM
Last Post: deanhystad
  Winsorized Mean and Standard Deviation Wheeliam 0 1,879 Jul-11-2020, 05:27 PM
Last Post: Wheeliam
  Is there a standard for autocommit In PEP 249 zatlas1 10 5,481 Feb-06-2019, 04:56 PM
Last Post: buran
  Graphics and standard deviation rocioaraneda 3 2,808 Jan-09-2019, 10:53 PM
Last Post: micseydel
  standard data types rombertus 3 78,049 Dec-23-2018, 08:52 PM
Last Post: rombertus
  How to know modules contained by python3 library sylas 3 5,305 Sep-04-2018, 01:40 PM
Last Post: sylas
  Join the Python Standard Library to my project sylas 1 2,247 May-16-2018, 05:59 AM
Last Post: buran
  Do you know how to import Python Standard Library sylas 30 14,620 Jan-26-2018, 01:32 PM
Last Post: metulburr
  Modules issue, pip3 download modules only to pyhton3.5.2 not the latest 3.6.1 bmohanraj91 6 8,588 May-25-2017, 08:15 AM
Last Post: wavic
  PyInstaller, how to create library folder instead of library.zip file ? harun2525 2 4,929 May-06-2017, 11:29 AM
Last Post: harun2525

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020