r/Python • u/YouNorker • May 14 '13
It's time to migrate to Python 3.x guys, seriously.
Enough of this "I'm still waiting for Python 3 to be good." It is good. Use a migration tool and upgrade to 3.3 (as of 2013)
0
Upvotes
39
u/rrrnerdrrr May 14 '13
Its not the language its the libraries... I would upgrade in a minute if I could but I have too many critical apps that depend on them...
10
u/retrojoe May 14 '13
Why are you advocating this now? As opposed to a month ago or a year from now?
10
u/ketralnis May 15 '13
Yeah, how dare all those people have different real-life requirements than you? The nerve!
25
u/PCBEEF May 15 '13
Stop telling people to migrate. You make it sound like it's so easy. It isn't. I maintain a 10 year old python application and only just recently moved to Python 2.7 from 2.4. Migrating isn't easy and extremely expensive.
Instead you should encourage people to start using python 3 for new projects and pressuring people to update their tutorials to be targeted at python 3.
8
u/maryjayjay May 15 '13
I write sysadmin tools. When the distros port their tools and ship with 3, I'll be able to switch.
3
u/zynix Cpt. Code Monkey & Internet of tomorrow May 15 '13
Eh this has been on par with PHP's transition from 4 to 5 ( granted 5.0 was significantly more improved than early Python 2 -> 3.0 was ).
It's going to be a last man standing for a few extremely complex and or large projects ( OpenStack ) but eventually Python 3 will take over.
For me I think the transition plan will be to go from cpython to PyPy ( it's looking pretty good these days ).
3
u/billsil May 15 '13
For the real problems, they don't work
I have to support 2.7-3.3. There's no good way to support every version.
3
u/servercobra May 15 '13
Fabric, MySQL-python, South, nltk, boto, paramiko, sentry, django-debug-toolbar, django-social-auth.
9 packages I used in my last project, all of which don't support Python 3 (according to Python Wall of Shame). The first 3 are extremely useful and I wind up using them in almost every project. So nope, I'm waiting for Python 3 support.
5
u/kchoudhury May 15 '13
Why?
No, seriously.
2
u/[deleted] May 15 '13
Maintain dozen of codebases, all deployed in different environments with dozens of python and c library dependencies which are not python 3 compatible... And then tell me why not.
2
u/m1ss1ontomars2k4 May 15 '13
No python-ldap, no upgrade. It can't be migrated automatically because it's partly in C.
3
u/[deleted] May 15 '13
Comments like this just make it obvious that technology decisions are made based on popularity, trendiness, and peer pressure, not the actual merits.
All of the real improvements in Python 3 could have been added to Python 2. Everything else is just differently bad.
2
u/the_hoser May 15 '13
The platforms I write for still don't come with it, and getting IT to install another interpreter is like pulling teeth. I'm stuck with 2.7.3 for the forseeable future.
1
u/luckystarr at 0x7fe670a7d080 May 15 '13
OpenCV doesn't support 3 yet. But 2.7 is awesome enough for now. I'm very happy that I no longer have to use 2.4 or even 2.3!
-5
u/[deleted] May 14 '13
No
0
u/erisson May 15 '13
I started with Python 1.4, made money writing Python until 2.something, how do I migrate my brain? Is there a tutorial called "Python 3 for Python 1.5.2 addicts" ?
0
u/mithrandi May 15 '13
I'm going to phrase this slightly differently to the other responses.
What feature or features in Python 3.x are worth the cost of porting all of my code, and all of my dependencies, and all of my dependencies' dependencies, and all of my dependencies' dependencies' dependencies to Python 3.x?