Is python2 dead?

Gary E. Miller gem at rellim.com
Tue Sep 5 01:20:24 UTC 2023


Yo Richard!

On Mon, 4 Sep 2023 19:24:22 -0500
Richard Laager via devel <devel at ntpsec.org> wrote:

> Dropping support for Python 2 should allow for dropping most of the
> poly infrastructure. That code (pylib/poly.py) involves some
> contortions (see also [1]) to make it possible to run on both Python
> 2 and Python 3.

And it also makes Python 3 code way easier to write.  Even when I
don't care about Python 2, I use the poly stuff.

> If we dropped support for Python 2, that should come in a couple
> phases. Phase 1 would be removing anything relating to Python 2
> itself. It should probably also include any changes relating to
> Python detection with waf. Phase 2 would be /carefully/ removing
> usage of the poly infrastructure, converting to idiomatic Python 3
> approaches. Once that is done, then we'd be rid of the 2 -> 3
> conversion baggage. These phases need not be separate releases, but
> should (IMHO) certainly be separate commits and likely be separate
> PRs.

A fair plan, and a lot of work, for little added value.

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: 246 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ntpsec.org/pipermail/devel/attachments/20230904/ae6289c4/attachment.bin>


More information about the devel mailing list