platform.python_build()
platform.python_build() is a Python function in the Platform Module category. Returns the build number and date as a tuple. The syntax is platform.python_build(). Returns: (buildno, builddate) tuple. A typical example: platform.python_build() # ("main", "Oct 2 2023 12:00:00"). A close sibling is platform.system(), which returns the OS/system name (Linux, Windows, Darwin, Java). A close sibling is platform.release(), which returns the system release version. A close sibling is platform.version(), which returns the system version string. A close sibling is platform.machine(), which returns the machine type (x86_64, arm64, etc.). More about this category: System platform info — system, release, python_version, uname. Related Platform Module entries: platform.system(), platform.release(), platform.version(), platform.machine(), platform.processor(), platform.python_version(). This page is part of the free Python Reference documentation covering 978+ functions, methods, and modules with examples and parameter details. You can try platform.python_build() immediately in the Python playground, look up unfamiliar terms in the glossary, or return to the Python Reference homepage.