Skip to content Skip to sidebar Skip to footer

Take Up Python 3.x Or 2.x?

I started learning Python a few months back - and was immediately faced w/ this question. At that point I made the conscious decision to continue w/ 2.x [2.7.1 to be precise], beca

Solution 1:

Use python 2.7 and start python with -3 parameter so it'll warn you when you use stuff thats not in python3 (or will be deprecated there), more details about this warnings here.

Solution 2:

It's a common question and you can find a great answer on the "official wiki" : http://wiki.python.org/moin/Python2orPython3

Solution 3:

Continue with 2.7. This question is asked here every few months. We'll notify the world when the answer changes. :-)

Solution 4:

When you have questions like this, it's often best to search first, read all the relevant answers, then compare all those answers to your needs. If you still have an unmet need after reading all the previous answers, you have a good question.

The same is true for Python 3.1. Search for all the libraries you need. If there is some functionality you need that hasn't been ported to 3.1, you have an unmet need. If you have an unmet need, then you can ask a unique and distinct question about that specific library that wasn't (yet) ported to 3.1.

This approach will always work and will never change. Ever.

  1. Search the built-in libraries for something you need.

  2. Search PyPI for something you need.

If something you need is not available in 3.1, then, you have two choices.

  1. Find someone with a similar package in Python 2 and find out what their conversion plan is. Either use their beta in Python 3 or convert it yourself to Python 3.

  2. Use Python 2 until they convert. Or use Python 2 because you can't convert the missing library.

Note that the process starts with search.

Post a Comment for "Take Up Python 3.x Or 2.x?"