I wanted to see how a math.py
function was implemented, but when I opened the file in PyCharm I found that all the functions are empty and there is a simple pass
. For example:
def ceil(x): # real signature unknown; restored from __doc__
"""
ceil(x)
Return the ceiling of x as a float.
This is the smallest integral value >= x.
"""
pass
I guess it is because the functions being used are actually from the C standard library. How does it work?
Question&Answers:os