# Bumping the minimum viable Python version to 3.8

**URL:** <https://discourse.vtk.org/t/bumping-the-minimum-viable-python-version-to-3-8/16627>\
**Category:** Development\
**Created:** [November 25, 2026, 2:37pm UTC](https://discourse.vtk.org/t/bumping-the-minimum-viable-python-version-to-3-8/16627 "2026-11-25T14:37:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ben.boeckel](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.vtk.org/u/ben.boeckel)\
**Post date:** [November 25, 2026, 2:37pm UTC](https://discourse.vtk.org/t/bumping-the-minimum-viable-python-version-to-3-8/16627/1 "2026-11-25T14:37:15Z")

</div>

VTK has, for many years, enforced a Python 3.4 floor. This floor has since eroded away and is no longer viable. As such, I have [an MR](https://gitlab.kitware.com/vtk/vtk/-/merge_requests/14068) raising that floor to 3.8. Here are the reasons for dropping each version:

- **3.4** : There is no support for the `PyModuleDef_Slots` mechanism of defining modules.
- **3.5** : There is no support for the f-string syntax (`f"{interpolated} string"`) which has gained a lot of use since its introduction
- **3.6** and **3.7** : There are crashes in the test suite with both version that I’ve not been able to track down related to object lifetime management.

The drop of each minor version is in its own commit so that anyone interested can revert individual commits to get back a baseline upon which to make fixes.

---

<div class="post-metadata">

**Author:** ![dcthomp](https://discourse.vtk.org/user_avatar/discourse.vtk.org/dcthomp/32/60_2.png) [@dcthomp](https://discourse.vtk.org/u/dcthomp)\
**Post date:** [November 25, 2026, 3:31pm UTC](https://discourse.vtk.org/t/bumping-the-minimum-viable-python-version-to-3-8/16627/2 "2026-11-25T15:31:19Z")

</div>

As far as Linux distros go, RHEL 8 comes with Python 3.6. Everything more modern seems to come with 3.9 or newer ([source](https://bitsnbytes.dev/posts/2023-05/python-versions-across-distros.html)). RHEL 8 will be supported until 2029. That’s the only argument I can think of for maintaining support of such old cruft, so I definitely support at least dropping 3.4–3.5. And unless the complaints are loud, I’m fine bumping to 3.8.

---

<div class="post-metadata">

**Author:** ![ben.boeckel](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.vtk.org/u/ben.boeckel)\
**Post date:** [November 25, 2026, 3:36pm UTC](https://discourse.vtk.org/t/bumping-the-minimum-viable-python-version-to-3-8/16627/3 "2026-11-25T15:36:25Z")

</div>

> [@dcthomp](#):
>
> so I definitely support at least dropping 3.4–3.5. And unless the complaints are loud, I’m fine bumping to 3.8.

Even with loud complaints, without patches, 3.6 and 3.7 are currently very broken (crashes in the garbage collector and startup under `PYTHONMALLOC=debug`), so restoration would need to come with such patches.

---

<div class="post-metadata">

**Author:** ![dzenanz](https://discourse.vtk.org/user_avatar/discourse.vtk.org/dzenanz/32/212_2.png) [@dzenanz](https://discourse.vtk.org/u/dzenanz)\
**Post date:** [November 27, 2026, 6:19pm UTC](https://discourse.vtk.org/t/bumping-the-minimum-viable-python-version-to-3-8/16627/4 "2026-11-27T18:19:26Z")

</div>

I am fine with the version bump. In fact, I am surprised that VTK supports Python 3.4 right now 😃
