Python 2 or Python 3?

Python_logo

If you have a choice, use Python 3. Especially if you’re a new to Python, so you don’t need to unlearn some of the Python 2 misfeatures that Python 3 was designed to correct. Python 3 has better Unicode and strings management for example. Besides, why not learn the most up-to-date and more future-proof version? And also not that many Python 2 popular library which hasn’t been ported yet to Python 3. Check out Python 3 Wall of Superpowers, Python 3 Readiness and Can I Use Python 3? for the data.

If you stuck with Python 2 like because the library you (really) need still hasn’t been ported to Python 3 or you simply don’t need to port to Python 3, then just use plain Python 2. Just in case you want to migrate more easily to Python 3 in the future, use one of the bridge packages like 2to3, six, python-modernize, python-future.

Reference:                                                                                                                                                                         Python 3: threat or menace? by Bill Lubanovic | O’Reilly Radar

Advertisements

Tags: ,

About Ferry T.H.

I'm just your fellow human being.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: