Version

A Python version.

Declaration

struct Version

Discussion

PytoRuntime currently only supports one minor version per app bundle: 3.14.0 and 3.14.1 are treated as the same version and using them together results in undefined behaviour.

Initializers

Initializes a version.

Members

Finds all Python versions in the given bundle. Searches for frameworks called "Python3xx".

Properties

The framework bundle.

The main app bundle.

Version info

The string version (major.minor.micro).

The full version string (fetched from full_version.txt in bundle). (v<major>.<minor>.<micro><release>).

The paths used to initialize Python’s module search path.

Major version.

Minor version.

Micro version.

The alpha release.

The beta release.

The rc release.

Indicates whether the version was compiled from an end of life branch.

The CPython C symbols for this version.

Runtime

Loads a symbol from the binary with dlsym.

Throws an Exception if there is one that was unhandled.

Conforms to

  • Sendable

  • Identifiable

  • Hashable