, python C, . , . , , , , -. C, .
- ipython.
In [10]: import string
In [11]: string.lower??
Signature: string.lower(s)
Source:
def lower(s):
"""lower(s) -> string
Return a copy of the string s converted to lowercase.
"""
return s.lower()
File: /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/string.py
Type: function
In [12]: import os
In [13]: os.system??
Docstring:
system(command) -> exit_status
Execute the command (a string) in a subshell.
Type: builtin_function_or_method
, , inspect.getsource().
import inspect
import os
print (inspect.getsource(os))
, .
, C, , , python . cpython/Objects. , C, .
, , . , .