4 Oct
2024
4 Oct
'24
10:16 p.m.
On 2024-10-05 01:30:30 +0900 (+0900), Takashi Kajinami wrote: [...]
to distinguish Python < 3.10 from Python >= 3.10 [...]
This is a questionable choice of implementation, given some distros in the past have backported features to older releases or reverted removals they saw as regressions. When possible, it makes more sense to test for the existence/absence of the feature you want to use rather than blindly assuming the (C)Python version will serve as a faithful proxy. An up-side to this approach is that you don't need to worry as much about version boundaries, as long as you test versions both with and without the feature/behavior in question. -- Jeremy Stanley