Applications Google
Menu principal

Post a Comment On: Only Python

"Porting to Python 3: What are you waiting for?"

4 Comments -

1 – 4 of 4
Anonymous Anonymous said...

I'm waiting for motivation !

So far, in my opinion there's nothing in python 3 that warrants the effort of porting.

Backward compatibility was broken to please the python core developers, not to solve a user problem. I can sort of understand how some of the new unicode stuff might make sense (despite having the effect of making often used easy stuff more difficult, and less often used hard stuff easier), but jokes like making "print" a function instead of a statement is just plain stupid: it breaks just about every code out there (even if it's just commented out debug code) and if I really wanted it in a function (I don't! Why would I?) I can simply wrap it in one.

So porting to python3 boils down to first investing (lots of) effort to arrive at something that works slower and (if you need to support multiple versions of python in the same code base) looks less readable. In what parallel universe would this make sense?

I can't help but wonder what the core devs were smoking when they came up with python 3.

9:23 AM

Anonymous Anonymous said...

numpy, scipy, matplotlib.

12:44 AM

Anonymous Anonymous said...

Um, Anonymous #2 - numpy, scipy, and matplotlib on Python 3? Done, done, and done.

2:45 AM

Blogger René Dudfield said...

Anonymous: a cleaner standard library is one bonus. There's heaps of smaller cleanups, which don't seem much by them selves, but they are.

Just that there is now one type of object is a pretty good cleanup.

Cleanups aren't so much features, and are not given the same weight by many people, but cleanups are harder and provide some lovely things.

u'' is missing, which is another cleanup.

The major incentive is that python2 is now a legacy platform. So if you have commercial projects running on it, you need to take the maintenance of python2 into consideration. The python community as a whole now seems to be moving towards python 3. With most major packages having been ported.


Finally, the performance of python3.3 is improving. There are a whole lot of improvements compared to python 3.2, and as more people start putting python 3 into production. Strings in particular in python3.3 are faster and use less memory. There are also some advanced optimization projects going on that have the potential to make py3k 1.3-2.2 times faster.


cheers

4:47 PM

Spammers: none shall pass.
You can use some HTML tags, such as <b>, <i>, <a>

Comments on this blog are restricted to team members.

You will be asked to sign in after submitting your comment.
Please prove you're not a robot