Last call regarding Python 2 removal

Fred Wright fw at fwright.net
Fri Nov 6 03:27:40 UTC 2026


On Thu, 5 Nov 2026, Gary E. Miller via devel wrote:
> On Thu, 5 Nov 2026 18:01:47 -0800 (PST)
> Fred Wright via devel <devel at ntpsec.org> wrote:
>
>> 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.
>
> We only worry about NTPSec here.  NTPSec works fine with Python 3, more
> versions at least.  That said, I have not found porintg 2 code to 3 hard
> at all...

If ntpsec only used Python *internally*, that would be fine.  But it 
provides Python modules that *users* can use to interact with it in 
*their* python code, making its Python compatibility a user-visible 
aspect.

>>>> 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?
>
> https://en.wikipedia.org/wiki/Is_the_glass_half_empty_or_half_full%3F

I'm perfectly aware of what the phrase means, but I don't see how it 
possibly has any relevance here.

>>>>  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.
>
> Ugh.  I would hate to contart my brain that way...  But you go
> ahead and code your way.

In other words, you have yet to adopt the Python 3 view of dataypes.

Fred Wright


More information about the devel mailing list