Last call regarding Python 2 removal
Gary E. Miller
gem at rellim.com
Fri Nov 6 03:04:18 UTC 2026
Yo Fred!
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...
> >> 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
> >> 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.
> >> 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.
Well, then I missed it. And object to the thought of it.
> > 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.
We have not seen that with NTPSec, back compatibility hsa worked for us
so far. Just a matter of how far back we intend to be compatible.
Could be worse, a log worse, if we used Rust.
RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
gem at rellim.com Tel:+1 541 382 8588
Veritas liberabit vos. -- Quid est veritas?
"If you can't measure it, you can't improve it." - Lord Kelvin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 283 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ntpsec.org/pipermail/devel/attachments/20261105/bed9c78e/attachment.bin>
More information about the devel
mailing list