Re: converting Python2 to Python3
The Wanderer wrote:
> On 2022-01-30 at 23:01, Mike Kupfer wrote:
>
> > FWIW, here are my notes from converting a couple small private scripts:
> >
> > * Note that 2to3 does not change the shebang line. And the actual
> > command in Debian10 [and 11] is 2to3-2.7.
>
> This is in the 'python2.7' package. However, there is also a package
> named '2to3', which contains a command by the same name.
Ah, I see. Both the files in /usr/bin are trivial wrappers, with
2to3-2.7 using the Python 2.7 library and 2to3 using the Python 3
library. I expect that 2to3 would be the better choice (/me updates
notes).
thanks,
mike
Reply to: