On this page
libtmux.common.get_version_str
- Module
- libtmux.common
- Package
- libtmux
- Source
- src/libtmux/common.py
-
Return the tmux version string verbatim, preserving letter suffixes.
get_versionnormalizes point releases for numeric comparison ("3.7a"becomesLooseVersion("3.7")). This helper keeps the raw suffix, so callers can distinguish patch releases whose behavior differs -- for example the tmux 3.7 break-pane crash, reverted in 3.7a.Examples
>>> isinstance(get_version_str(), str) True
0 declared, 0 inherited