Last call regarding Python 2 removal
Fred Wright
fw at fwright.net
Fri Nov 6 02:01:47 UTC 2026
On Wed, 4 Nov 2026, Gary E. Miller via devel wrote:
> On Wed, 4 Nov 2026 17:54:57 -0800 (PST)
> Fred Wright via devel <devel at ntpsec.org> wrote:
>> On Tue, 3 Nov 2026, Matt Selsky via devel wrote:
>>
>>> I plan to merge
>>> https://gitlab.com/NTPsec/ntpsec/-/merge_requests/1510 after
>>> Saturday November 11 unless I hear any objections.
[...]
>> Aside from impact on users,
>
> Uh, which users? Anyone still on Python2 that actually updates their
> NTPSec versions?
It's not about whether Python gets updated; it's about having code that
*doesn't work* in Python 3. It takes real work to make Python 2 code work
with Python 3. I'd guess that there are at least a billion lines of
active Python code that doesn't work with Python 3.
>> there's the matter of the polyXXX()
>> wrappers. Some people mistakenly believe that those are there to
>> provide Python 2 compatibility. They're not. They're there to
>> provide *Python 3* compatibility.
>
> Is the glass half full or half empty?
Huh?
>> They're a kludge that Eric created
>> to allow Python 2 code to work in Python 3 without having to be
>> rewritten to conform to the Python 3 datatype model.
>
> Maybe a kludge, but I find myself using them even in programs only
> for Python 3.
That's nuts. All *new* Python code that I write is compatible with both
Python2 and Python 3, with nary a polyXXX() call in the lot.
>> Eliminating
>> them would require said rewriting to happen,
>
> I don't recall anyone suggesting they be eliminated. To the contrary,
> I find them usefui, and would like to keep them around for the near
> and medium future.
It was specifically stated on this list that eliminating the polyXXX()
wrappers was a motivation for ditching Python 2.
>> along with ensuring that
>> the new code is adequately tested.
>
> We always want more than adequate testing!
>
> IMHO, the reason so remove the Python2 compliance requirement is
> to allow the usage of many new Python2 features. I am tired of
> telling coders to remove cool Python 3 features from their code.
> Unclear where the line should be drawn. Python 3.6 may be a good
> minimum going forward?
And note that the python.org folks are constantly introducing new
breakage, though none as bad as 2->3.
Fred Wright
More information about the devel
mailing list