cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
798
Views
5
Helpful
1
Replies

investing in Python 2 or 3 ?

JonDon57161
Level 1
Level 1

Hi,

simple question : for the forseeable future the software frameworks associated with Cisco products and services will run on Python 2 or there are plans to introduce Python 3 ?

 

A person studying for a certification in the 2020 should go for Python 2 or Python 3 ?

1 Accepted Solution

Accepted Solutions

Sergiu.Daniluk
VIP Alumni
VIP Alumni

Hi,

 

Despite the fact that you still have Python2.7 in most of the Cisco software products, example from  NX-OS 9.2:

 

N9K# python 
Python 2.7.11 (default, Feb 26 2018, 03:34:16) 
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 

 

I would strongly advise to learn python3.  There is no reason to learn Python2, keeping in mind that it is officially no longer maintained: https://www.python.org/doc/sunset-python-2/ 

As of January 1st, 2020 no new bug reports, fixes, or changes will be made to Python 2, and Python 2 is no longer supported

This means that if any security issue is found in Python2, the security bug will not be fixed. 

 

 

Cheers,

Sergiu

View solution in original post

1 Reply 1

Sergiu.Daniluk
VIP Alumni
VIP Alumni

Hi,

 

Despite the fact that you still have Python2.7 in most of the Cisco software products, example from  NX-OS 9.2:

 

N9K# python 
Python 2.7.11 (default, Feb 26 2018, 03:34:16) 
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 

 

I would strongly advise to learn python3.  There is no reason to learn Python2, keeping in mind that it is officially no longer maintained: https://www.python.org/doc/sunset-python-2/ 

As of January 1st, 2020 no new bug reports, fixes, or changes will be made to Python 2, and Python 2 is no longer supported

This means that if any security issue is found in Python2, the security bug will not be fixed. 

 

 

Cheers,

Sergiu