News for hackers. Stuff that matters.
Re:Python 3.4.0 released by gangster_dave on Monday March 17, 2014 @04:08AM (#7413735)
Cool. I love Python, but it's really going to be a decade before this interpreter is used in production by anyone.
Re:Python 3.4.0 released by anewhnaccount on Monday March 17, 2014 @04:45AM (#7413862)
The problem with statements like these is people always move the goal posts. If challenged it goes from nobody to talking about the proportions. There are plenty of people who will use this straight away. Yes, maybe as a proportion but Python has a lot of users developing a lot of different types of applications. Even if initially it's a small proportion, it's not the absolute numbers are large. I guess some of the bellyaching is because there's a feeling that the community and ecosystem of libraries is becoming fragmented -- but the community is large enough to take it and anyone really needing a particular library should be capable of expending the effort to port it or find an alternative. There are plenty of users who don't engage with the community much and/or just use established libraries/the standard library anyway.

In conclusion, not everyone is in the same boat as you. Try and see beyond your own nose pleas.

Re:Python 3.4.0 released by saurik on Monday March 17, 2014 @07:48AM (#7414479)
I imagine some of the disappointment is that there is a large community of people using the language ecosystem "Python 2", and that ecosystem seemed to have been prematurely killed in the hope of not just helping the small proportion of people who considered this new language ecosystem "Python 3" valuable, but seemingly in a failed attempt to actively strongarm people into switching: it's like if the people who worked on C++ standardized Rust as "C++14" and indicated that not only were no language inprovements ever coming to the old C++, but that all of the compiler implementaters had given up on it and were unlikely to ever release updates, even to fix bugs: that if people wanted support from the language called "C++" they needed to switch to this new language ecosystem. Sure, the syntax disparity is much smaller between Python 2 and Python 3, but the library semantics are still highly skewed (I mean, if it were just some simple syntax issues everything would have been trivial to port immediately). But really, the key issue is really the language ecosystem: the number of available libraries, the distribution in major operating systems, the cloud hosting options, etc. While these almost look vaguely hopeful for the Python 3 crowd at this point, it took five years of enforced death of Python 2 to strongarm it to even this point, and as it stands it is still weak. Maybe after 5 years of enforced death to C++ compilers someone could also claim a transition to Rust looked hopeful. And again: I understand that for some people this is great: I don't think anyone is actively complaining that Python 3 shouldn't exist, more that it's existence at the detriment of Python 2 snubbed a very large community of people. Like, one could say the same thing to the people who advocate everyone upgrading ASAP, or even ever: "not everyone is in the same boat as you; try to see beyond your own nose please".
Re:Python 3.4.0 released by gtaylor on Monday March 17, 2014 @11:03AM (#7415403)
> I understand that for some people this is great: I don't think anyone is actively complaining that Python 3 shouldn't exist, more that it's existence at the detriment of Python 2 snubbed a very large community of people.

There's a very simple solution, for those that can't/won't upgrade: Fork it. Work on OldNewPython 2.8. The core devs of Python want to work on Python 3, so that's where we're headed. There's no need to argue technical merits of Python 2 vs 3, the simple fact is that the development momentum is with Python 3 now.

Open source is a do-ocracy. Bring together your other like minded devs to work on Python 2 and keep on keeping on. We can't expect the core devs to keep maintaining an old version of Python. A lot of them are doing this for fun or as a hobby.

Re:Python 3.4.0 released by maxerickson on Monday March 17, 2014 @08:52AM (#7414708)
Edit: what was here was wrong so I removed it.

Anyway, there have been bug fixes and there will continue to be security related releases of 2.7 for a while still.

Re:Python 3.4.0 released by broodbucket on Monday March 17, 2014 @04:19AM (#7413761)
Python 3 came out in 2008. You're saying 16 years post-release until a moderately sized change (the majority of which is regarded as improvements) to a language is used in production.

That's totally bonkers.

Re:Python 3.4.0 released by kamaal on Monday March 17, 2014 @06:20AM (#7414146)
>>That's totally bonkers.

Actually its not. No one will want to spend time and effort on regression just because the tool maintainers want a print statement to be function and not a statement. Or for a small trivial change.

Re:Python 3.4.0 released by rat87 on Monday March 17, 2014 @06:40AM (#7414221)
from __future__ import print_function has been available since 2.6
Re:Python 3.4.0 released by broodbucket on Monday March 17, 2014 @05:00PM (#7418059)
This isn't just a "cosmetic" change, it's actually useful; print as a statement can't be used in list comprehensions, and print as a function comes with end= which is a huge time saver.
Re:Python 3.4.0 released by camus2 on Monday March 17, 2014 @07:08AM (#7414335)
s/print(.*)/print($1) ?

Anyway when a language doesnt have a strong unit testing culture,that's what happens.

Re:Python 3.4.0 released by aeroevan on Monday March 17, 2014 @10:42AM (#7415249)
Or just use 2to3 which automates most of those simply changes and nose for unit tests :)
Re:Python 3.4.0 released by levosmetalo on Monday March 17, 2014 @04:27AM (#7413782)
And people complain about slow Java upgrade cycles ;)
Re:Python 3.4.0 released by natmaster on Monday March 17, 2014 @05:10AM (#7413935)
Java doesn't release anything new for 8 years. Whereas in python world some people don't upgrade for 8 years.
Re:Python 3.4.0 released by pron on Monday March 17, 2014 @06:33AM (#7414203)
Nitpick, but the longest break so far between major Java releases has been 4.5 years[1] (between Java 6 and 7), which also spanned Sun's acquisition by Oracle.

[1]: http://en.wikipedia.org/wiki/Java_version_history

Re:Python 3.4.0 released by pjmlp on Monday March 17, 2014 @05:54AM (#7414053)
Still better than 13 years for C++11 or having to wait around 6 years for the availability across all major compilers of what might be C++17 (looking at you modules).
Re:Python 3.4.0 released by deong on Monday March 17, 2014 @06:36AM (#7414210)
I'm not sure it is. With C++, you can just start to work. There's no one saying "C++-11 is completely different and not at all compatible with the previous version, so you'll need to port all your existing code. Oh, and we're not going to support the old version anymore. Except we sort of will. But not. Kind of."

I like both languages actually, and I use python quite a bit, but holy crap has python 3 been a train wreck. C++ moves slowly, but predictably. Python has two active versions: one you're not supposed to use and one you can't.

Re:Python 3.4.0 released by hacman on Monday March 17, 2014 @10:30AM (#7415179)
I have heard Stroustrup speak and he mentioned multiple times how important it is to maintain compatibility with all existing code in between language versions. Say what you want about C++, but I think they have the right approach. If you are the steward of such a fundamental project, it is definitely in your users' (and therefore your project's) best interest to keep everything that exists working. It's just not worth the pain to make trivial changes in the name of aesthetics or "usability" that break every single hello world program (making print a function instead of a statement) or to change how the division operator works for your millions of existing users to save some initial confusion for hypothetical potential users.

C++ may have become a bit unwieldy as a result of the combination of this policy and the focus on adding new features, but developers working on existing code bases can continue to develop happily ignoring as much of C++11 as they like without the concern that the plug will be pulled in their platform some time soon. As they decide to adopt the new features, they can, based in the merits of the feature, not because they are forced to by the platform's developers.

There are starting to be some compelling features in py3k, but none of those required the massive language breakage that has happened between Python 2.x and these releases. All of the compelling features could have been added piecemeal through the normal backward-compatible deprecation and release process. And the devs who were so bothered by print and exec being a function, or other stupid things could continue to complain in the mailing list while the rest of us get our work done.

Re:Python 3.4.0 released by deong on Monday March 17, 2014 @12:24PM (#7416029)
I tried very hard to be in the python3 camp. I'm among those who found the changes to be mostly good ones, and I've talked myself into biting the bullet a couple of different times, but it always turns out the same.

Last month I gave up and reverted the project I'm working on now back to python2 after spending an afternoon looking for unofficial ports of a large library only to find that someone on Github had forked it, done the hard work of fixing 2200 broken bits, and had his pull request ignored without comment for a full year.

I give up.

Re:Python 3.4.0 released by garenp on Monday March 17, 2014 @01:13PM (#7416419)
Which library is that? Truly curious.
Re:Python 3.4.0 released by deong on Monday March 17, 2014 @02:56PM (#7417216)
Pybrain.

Apparently it's sort of unmaintained in general, but I was trying to use it for something that I wasn't happy with scikit-learn for, and at the time, I wasn't aware of how long it had been since it had been updated in general.

So in hindsight, it wasn't the best example, but I had already had to deal with tracking down an random person's networkx branch as well, so that was enough to make me finally just fix the few things needed to work in 2.7.

Re:Python 3.4.0 released by rspeer on Monday March 17, 2014 @07:37PM (#7418870)
I think you'll have an increasingly hard time finding good examples. Most packages that aren't ready for Python 3 by now are just unmaintained. At best they're so bogged down in their own complexity that you should be wary of using them for anything new.

Sometimes you need to use unmaintained or legacy code, and that sucks. But there are lots of programmers who don't have such a burden, and they shouldn't be discouraged from Python 3.

networkx is Python 3 compatible, by the way.

Re:Python 3.4.0 released by deong on Tuesday March 18, 2014 @06:56AM (#7421195)
> networkx is Python 3 compatible, by the way.

So it is. I'm not sure why I couldn't find that six months ago while I was looking.

Also, I don't mean to imply that people should be discouraged from using Python 3. Like I said, I want to use it myself, and would be if I hadn't ran into problems.

Re:Python 3.4.0 released by ishbits on Tuesday March 18, 2014 @12:39AM (#7420206)
As a developer it's easier for me to ship java apps with the current runtime than it is to ship a python app with the updated runtime. Therefore I'm more likely to stay current with Java than I am with Python, especially when my target is any Linux from centos 5 and newer (including debian, etc. centos 5 is more used as a reference for a date).
Re:Python 3.4.0 released by rectangletangle on Monday March 17, 2014 @04:21AM (#7413766)
I think adoption will improve substantially when major Linux distros start shipping with Python 3.x as the default interpreter. I believe this is the case with Ubuntu 14.04 LTS.
Re:Python 3.4.0 released by gangster_dave on Monday March 17, 2014 @09:01PM (#7419267)
If you're code is still locked to 2.7, what your OS ships with doesn't matter.
Re:Python 3.4.0 released by kintamanimatt on Monday March 17, 2014 @04:54AM (#7413890)
Major Linux distros already do.
Re:Python 3.4.0 released by stefantalpalaru on Monday March 17, 2014 @07:14AM (#7414354)
Name one other than Arch.
Re:Python 3.4.0 released by kintamanimatt on Monday March 17, 2014 @07:42AM (#7414455)
Fedora has for a while. I really don't recall regarding versions prior to Ubuntu 13.10, but this version has Py3x as a default.
Re:Python 3.4.0 released by dagw on Monday March 17, 2014 @07:56AM (#7414504)
Ubuntu 13.10 ships with python3, but python2 is still the default python you get when you run /usr/bin/python
Re:Python 3.4.0 released by cben on Tuesday March 18, 2014 @04:19AM (#7420748)
I think most distributions don't intend to change /usr/bin/python to 3 in the observeble future as that will break scripts. The meaningful way in which distros work on 2->3 transition is uprading apps installed by default to use 3 so python2 can be thrown out of the default CD image.

Sources: http://radiofreepython.com/episodes/10/ (IIRC this is where I learn this but I'm lazy to listen again to confirm. I recall Barry mentioned some distro that did change /usr/bin/python to 3 and that a lot of stuff broke.) https://wiki.ubuntu.com/Python/3 https://mail.python.org/pipermail/python-dev/2013-July/12752...

Re:Python 3.4.0 released by kintamanimatt on Monday March 17, 2014 @08:01AM (#7414526)
My apologies, re 13.10. I forgot about that line in my .bash_aliases file!

I stand by Fedora though with a reasonable degree of confidence!

Re:Python 3.4.0 released by maximux on Monday March 17, 2014 @10:21AM (#7415130)
No, Fedora ships with 2.7.
Re:Python 3.4.0 released by kintamanimatt on Monday March 17, 2014 @03:33PM (#7417488)
Well, I maintain: when I'm wrong, I'm wrong! :-)
Re:Python 3.4.0 released by stefantalpalaru on Monday March 17, 2014 @08:45AM (#7414676)
Re:Python 3.4.0 released by kintamanimatt on Monday March 17, 2014 @12:54PM (#7416276)
Well, when I'm wrong, I'm wrong!
Re:Python 3.4.0 released by thomasahle on Monday March 17, 2014 @04:39AM (#7413837)
I find it hard to think of anything that doesn't run on Python3 by now. The only thing that's still good about Python2 is that it's much faster. I always hope for a release that addresses that.
Re:Python 3.4.0 released by rhizome31 on Monday March 17, 2014 @05:48AM (#7414037)
Do you have more info about how Python 2 is faster than Python 3? I had understood that it was faster for some stuff but slower for other stuff. This benchmark says they're roughly the same: https://speakerdeck.com/pyconslides/python-3-dot-3-trust-me-...
Re:Python 3.4.0 released by buovjaga on Monday March 17, 2014 @05:40AM (#7414014)
This things lists Python3 support in PyPI packages: http://python3wos.appspot.com/
Re:Python 3.4.0 released by mildtrepidation on Monday March 17, 2014 @01:04PM (#7416357)
Thank you for posting this. Pages like that are nice for pointing out to people who don't have issues that many of us do. I think people tend to forget that most programming languages are not single-purpose and can be used in widely varying environments for significantly different purposes.
Re:Python 3.4.0 released by kilink on Monday March 17, 2014 @09:34AM (#7414888)
Boto doesn't support Python 3 yet. That's a pretty big one if you're using AWS.
Re:Python 3.4.0 released by voltagex_ on Monday March 17, 2014 @06:58PM (#7418692)
Has anyone used boto3? https://github.com/boto/boto3
Re:Python 3.4.0 released by lambda on Monday March 17, 2014 @08:30AM (#7414625)
Twisted is a pretty big dependency. The entire stack that I work on depends heavily on Twisted, and we use a lot of it, so until it's ready on Pyhon 3, it'll be hard for us to move.

We also depend on Paramiko, which is also red on the WOS.

Re:Python 3.4.0 released by tshepang on Monday March 17, 2014 @08:50AM (#7414703)
1.13, released on 2014-03-14, does support Python 3. It's just someone must have forgotten to update PyPI metadata to indicate so.
Re:Python 3.4.0 released by lambda on Tuesday March 18, 2014 @12:14AM (#7420113)
Ah, that's good news about Paramiko.

Twisted is a bit of a bigger matter. A lot of the Python 3 tasks have been closed, but it's a pretty big beast, with lots of corners for bugs to hide in.

Re:Python 3.4.0 released by illumen on Tuesday March 18, 2014 @03:46AM (#7420663)
Parts of twisted are already ported to python3. Enough, that some projects are already running on python3 in production.

See their full plan here: http://twistedmatrix.com/trac/wiki/Plan/Python3

Re:Python 3.4.0 released by lambda on Tuesday March 18, 2014 @04:46AM (#7420816)
Yes, I'm well aware and keeping an eye on it.

However, we use twisted.spread extensively, and that's not in the list of Python 3 compatible modules, and twisted.web.client and twisted.web.server are only on the "almost" list: http://twistedmatrix.com/trac/browser/trunk/twisted/python/d...

Re:Python 3.4.0 released by illumen on Tuesday March 18, 2014 @07:47AM (#7421343)
It's interesting that those are really old modules with missing tests.
Re:Python 3.4.0 released by goostavos on Monday March 17, 2014 @08:25AM (#7414606)
WxPython =( Which is, like, 90% of what I do at work. I really want to upgrade to 3, but alas... Still stuck on 2x.
Re:Python 3.4.0 released by epsylon on Monday March 17, 2014 @06:37AM (#7414214)
There's plenty of stuff that still run on Python 2 these days. Google App Engine, for example, is still Python 2.7 only.
Re:Python 3.4.0 released by kintamanimatt on Monday March 17, 2014 @04:56AM (#7413892)
Twisted and gevent don't!
Re:Python 3.4.0 released by rspeer on Monday March 17, 2014 @07:48PM (#7418921)
Which I think is pretty revealing about the state of Twisted and gevent.

I know from experience that gevent is not in a healthy state of maintenance. There have been some recent commits that indicate it might get better eventually, but I would not design new code to use gevent.

Re:Python 3.4.0 released by illumen on Tuesday March 18, 2014 @03:48AM (#7420665)
A subset of twisted is already running on python3... enough that projects are going into production with twisted on python3.

Full python3 plan for twisted here: http://twistedmatrix.com/trac/wiki/Plan/Python3

They really are one of the slowest projects to update.

Re:Python 3.4.0 released by ubernostrum on Monday March 17, 2014 @04:54AM (#7413889)
I'm already using 3.3 on live stuff. Likely to make the jump to 3.4 when I have the time to do the upgrade.
Re:Python 3.4.0 released by chris_mahan on Monday March 17, 2014 @12:20PM (#7416014)
I use python3 in production. Working at large bank.
Re:Python 3.4.0 released by illumen on Tuesday March 18, 2014 @03:45AM (#7420660)
Nice one :)

If there's anyone not using python3 in production now, I'd be wary of that team. Maybe it could be forgiven two years ago, but now... There's just too much to be gained with modern python.

But hey, there's still some organisations using php3 in production!

Re:Python 3.4.0 released by darkarmani on Tuesday March 18, 2014 @09:23PM (#7426275)
> If there's anyone not using python3 in production now, I'd be wary of that team.

I'd imagine the majority of teams are using python2 in production. Especially when LTS OSs ship with python 2.7. Things like Anaconda make it a lot easier to install python3 along side of python2.7 and move individual projects to 3.

Re:Python 3.4.0 released by chris_mahan on Wednesday March 19, 2014 @01:37AM (#7427005)
we have a simple setup, and use python3.3.3. (Should be at 3.3.5 soonish) We have a dependency on pyodbc and they don't have a version for python 3.4. Also, we use pywin32. (Yes, on windows. We use it to monitor machines, do graphviz diagrams, xml-rpc, that sort of things. On windows mmsql environemnt. Yes i keep on top of it. We try to do everything we need with the standard library, which is surprisingly good. Also, I do have one service using 2.7 because web.py. (Thank You Aaron!)
Re:Python 3.4.0 released by chrismonsanto on Monday March 17, 2014 @09:36AM (#7414898)
I will be using Python 3.4 in production soon.