Python3 ?

Posted on
Fri Nov 25, 2016 10:39 pm
elf55 offline
Posts: 45
Joined: Mar 19, 2012

Python3 ?

Am I the only one that is surprised that Indigo 7 uses Python 2.7 instead of 3.X? Why bring out a new product with a language that is deprecated and will not be enhanced after April 2020? While I can use 2.7, I find myself avoiding it these days due to the capabilities of ver 3.5+.

Posted on
Fri Nov 25, 2016 11:11 pm
Bollar offline
Posts: 528
Joined: Aug 11, 2013

Re: Python3 ?

<Shrug> No, I guess I'm not surprised. 2.7 comes with current versions of macOS...
Code: Select all
Ricks-MacBook-Air-2:~ rick$ python
Python 2.7.10 (default, Jul 30 2016, 19:40:32)
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>

Insteon / Z-Wave / Bryant Evolution Connex /Tesla / Roomba / Elk M1 / SiteSage / Enphase Enlighten / NOAA Alerts

Posted on
Fri Nov 25, 2016 11:19 pm
matt (support) offline
Site Admin
User avatar
Posts: 21417
Joined: Jan 27, 2003
Location: Texas

Re: Python3 ?

Indigo uses the Python framework installed by Mac OS. macOS 10.7 (our min OS requirement) includes Python 2.7, so that is the version we target. We could of course embed our own version of Python (we might some day), but there are some advantages to using the macOS version as it includes some macOS specific services. A lot of them have been deprecated at this point, but some of them are still useful.

Image

Posted on
Sat Nov 26, 2016 1:42 pm
jay (support) offline
Site Admin
User avatar
Posts: 18223
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Python3 ?

And Indigo isn't a new product. We started using Python in 2008, before Python 3 shipped, and certainly well before it was ready for primetime (though there are a LOT of people who might disagree that it's ready for primetime LOL). We'll make the move to Python 3 in due course, but there is very little reason to spend the energy to do it now.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 9 guests