On this page
platform.ios_ver
Prev: platform.invalidate_caches | Up: platform | Next: platform.IOSVersionInfo
Rel: platform.android_ver, platform.AndroidVer, platform.architecture, platform.freedesktop_os_release
Ref: docs.python.org — platform.ios_ver
Tags: #public #python3 #stdlib #platform
Import
import platform
from platform import ios_ver
Signature & Overview
platform.ios_ver(system='', release='', model='', is_simulator=False)
Get iOS version information, and return it as a namedtuple: (system, release, model, is_simulator).
Usage
import platform
if hasattr(platform, "ios_ver"):
assert isinstance(platform.ios_ver().system, str)
Gotchas
- Requires Python 3.13+: Empty fields on non-iOS platforms.
REPL Inspect
from platform import ios_ver
help(ios_ver)
Linked from
Related notes
- tuts/python3/stdlib_module/platform/invalidate_caches Linked here; links to this page; shared tags: #platform, #stdlib
- tuts/python3/stdlib_module/platform/IOSVersionInfo Linked here; links to this page; shared tags: #platform, #stdlib
- tuts/python3/stdlib_module/platform/android_ver Linked here; shared tags: #platform, #stdlib
- tuts/python3/stdlib_module/platform/AndroidVer Linked here; shared tags: #platform, #stdlib
- tuts/python3/stdlib_module/platform/architecture Linked here; shared tags: #platform, #stdlib
- tuts/python3/stdlib_module/platform/freedesktop_os_release Linked here; shared tags: #platform, #stdlib
- tuts/python3/stdlib_module/platform/platform Linked here; shared tags: #platform, #stdlib
- tuts/python3/stdlib_module/platform links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/platform/java_ver shared tags: #platform, #stdlib
- tuts/python3/stdlib_module/platform/libc_ver shared tags: #platform, #stdlib