Modulda təyin edilən adların (atributların) siyahısını almaq üçün dir() funksiyasından istifadə olunmalıdır:
import modul
dir(modul)
Burada modul daxil edilən modulun adıdır.
Aşağıdakı nümunədə cmath modulunda təyin edilən adları görmək mümkündür:
>>> import cmath
>>> dir(cmath)
['__doc__', '__file__', '__loader__', '__name__',
'__package__', '__spec__', 'acos', 'acosh', 'asin',
'asinh', 'atan', 'atanh', 'cos', 'cosh', 'e', 'exp',
'isclose', 'isfinite', 'isinf', 'isnan', 'log',
'log10', 'phase', 'pi', 'polar', 'rect', 'sin',
'sinh', 'sqrt', 'tan', 'tanh']
>>>
Bu siyahıdakı konkret bir ad haqqında məlumat isə help() funksiyası ilə əldə edilə bilər:
>>> help(cmath.log)
Help on built-in function log in module cmath:
log(x, y_obj=None, /)
The logarithm of z to the given base.
If the base not specified, returns the natural logarithm (base e) of z.
>>>

“Adlar siyahısı” üçün bir şərh
Şərh üçün bağlıdır.