Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

using python 2.6?

Tags:

python

i have no way of upgrade to python 2.7 or 3.1 so i am stuck with python 2.6 on my ubuntu 10.04 machine.

will i still be able to find host that supports python 2.6?

is using python 2.6 still consider outdated or bad practice?

like image 486
user62617 Avatar asked Jan 24 '11 04:01

user62617


People also ask

Does Python 2.7 still work?

What happens now? 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.

How do I run Python 3 code in Python 2?

To use the Python 3 processor for Python code within a program block, use BEGIN PROGRAM PYTHON3-END PROGRAM . By default, Python scripts that are run from the SCRIPT command are run with the Python 2 processor. To run a script that uses the Python 3 processor, use PYTHONVERSION=3 on the SCRIPT command.

Can I use Python 2 and 3 together?

We can have both Python 2 and Python 3 installed on any Windows or Linux device. We can either create different environments on different IDEs to use the versions separately or use the following ways to run them using the command prompt.


2 Answers

2.6 will be around for a long time. There are many machines that still run even 2.4, so you're fine.

like image 59
Ignacio Vazquez-Abrams Avatar answered Sep 22 '22 16:09

Ignacio Vazquez-Abrams


Python 2.6 will probably still be around for a while, as Python 2.7 was released only a few months ago.

You can always use from __future__ import ... to make use of some of the newer features from Python 3.x

like image 25
Cam Avatar answered Sep 24 '22 16:09

Cam