:: Re: [DNG] How bad would it be to re…
Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Steve Litt
Fecha:  
A: dng
Asunto: Re: [DNG] How bad would it be to require Python3?
On Sun, 21 Aug 2016 07:50:49 +0200
Adam Borowski <kilobyte@???> wrote:

> On Sun, Aug 21, 2016 at 03:51:15PM +1200, Daniel Reurich wrote:
> > On 21/08/16 15:19, Steve Litt wrote:
> > > Are there still people who have ONLY Python 2.x installed on their
> > > computers, without having Python 3.x? Would requiring Python 3
> > > instead of just plain Python be resented by those of us wanting
> > > minimal dependencies?
> >
> > By default Devuan Jessie uses python 2.7, so whilst python 3 is
> > available, I'd encourage sticking to that unless it adds significant
> > pain to the project...
>
> What do you mean by "default"? There is no default (other than
> between versions of python 2 and between versions of python 3), these
> two are fully coinstallable,


When you do a plain vanilla, follow every default installation of
Devuan, which gets installed:

1. Python 2?
2. Python 3?
3. Python 2 and 3?
4. Neither?


> and programs need to choose which one
> they want, with python 2 being strongly depreciated and going to be
> removed after stretch (which corresponds to Devuan ascii):


I would *never* write a program that would work only in Python 2. I
can't understand why anyone would do new construction in an old
language. My decision is simply how far I want to go in order to have
my program *also* work with Python 2.

>
> https://lists.debian.org/debian-devel-announce/2015/04/msg00005.html
>
> As to when /usr/bin/python is going to be switched, the current plan
> is "never"! Even after complete removal of python 2. The
> explanation I've heard is that they prefer unpackaged programs to
> obviously fail instead of producing unpredictable results.


I guess that precludes my starting everything with #!/usr/bin/python
and letting the meaning of that slowly migrate to python3.
>
>
> And if you're concerned about minimal dependencies, there's a fine
> interpreted language at /usr/bin/perl, Essential:yes in Debian and all
> derivatives.


:-)

Once upon a time I was a Perl programmer. I made good money doing it.
The original UMENU was written in Perl in 1999. But I'm not a "many
ways" type of guy, and as soon as I found Python and Lua, I realized I
was the kind of guy who did better when discipline was imposed by my
language, at least to some degree.

I sure do miss Perl regex though.

Thanks!

SteveT

Steve Litt
August 2016 featured book: Manager's Guide to Technical Troubleshooting
Brand new, second edition
http://www.troubleshooters.com/mgr