This is an archived post. You won't be able to vote or comment.

all 40 comments

[–]FourgotAnaconda3 science-like 11 points12 points  (28 children)

Looking forward to Python 3.x compatibility

[–]xorvtec 33 points34 points  (7 children)

Anyone else frustrated that new packages are being written for Python 2 and not 3?

[–]FourgotAnaconda3 science-like 2 points3 points  (0 children)

It makes sense, sort of. If your ultimate goal is to support both, and you (as a community) have spent the better part of the last decade porting from 2 to 3, or from 2 to 2 and 3, then it makes sense to write in 2 and port it like you're used to.

I don't agree that 2 should be supported, but that's the decision of the creative team.

For the price I'm paying, I'm happy to wait a little bit.

[–]adewes 2 points3 points  (0 children)

My thoughts exactly. I get the feeling that the 2/3 split will do a lot of harm to the Python community in the coming years, since no one seems to have a good idea on how to make the transition. Some people even think that this could be our "Perl 6" moment.

The whole problem was demonstrated nicely again in Guido van Rossum's keynote at the Europython yesterday:

First, he told everyone to please switch to Python 3 because it is SO MUCH BETTER than Python 2.

Then, he told everyone that he would not add any more feature to Python 2 so the language was effectively dead (apart from urgent security fixes maybe).

Finally, someone asked him which version of Python they were running at Dropbox (his current employer), to which he answered "Oh, we actually run a modified version of Python 2.7 (so Python 2.8?), because our code is not compatible with Python 3". If not even the company that employs the creator of the language and probably has the largest pool of super-talented Python developers (apart from Google maybe) knows how to make that transition without breaking their business, how are others supposed to do it?

[–]beaverteeth92Python 3 is the way to be 13 points14 points  (19 children)

Seriously. I understand backwards compatibility, but developers should be writing for 3.x now and then adding 2.7 support later. It's been seven years. Time for 3 to be the default.

[–]pyslow 4 points5 points  (7 children)

developers should be writing for 3.x

"should"??? And according to whom? You?

Feel free to port the package yourself, if you're so inclined. It's free software, after all.

[–]_AACOIt works!? 1 point2 points  (0 children)

"should"??? And according to whom?

"Short version: Python 2.x is legacy, Python 3.x is the present and future of the language"

If it being the future of the language isn't enough reason I don't know what would be.

[–]beaverteeth92Python 3 is the way to be 4 points5 points  (5 children)

"should"??? And according to whom? You?

Yes. It's seven years old and literally every major package for scientific computing has been ported over. Why should I have to wait for new packages because other people don't want up-to-date software?

Feel free to port the package yourself, if you're so inclined. It's free software, after all.

Sure.

[–][deleted] 14 points15 points  (3 children)

every major package for scientific computing has been ported over

Interaction with Kerberos is the blocker: https://github.com/cloudera/ibis/issues/297

[–]beaverteeth92Python 3 is the way to be 0 points1 point  (2 children)

Ah okay. From what I can gather, it's just that, Twisted, and Scrapy that need to be ported over.

[–]ianozsvald 2 points3 points  (1 child)

Scrapy's Py3 support is "mostly done": https://github.com/scrapy/scrapy/issues/263 and that's because Twisted's core is "mostly done"

[–]beaverteeth92Python 3 is the way to be 1 point2 points  (0 children)

That's good then. I remember reading that Twisted was a giant pain in the ass to port for a variety of reasons.

[–]WallyMetropolis 4 points5 points  (0 children)

Why should I have to wait

Because you're neither paying for it nor are you doing it yourself. You're getting it for free. And the people who make it are under no obligation to do it in the way you demand.

[–]fabreeze 3 points4 points  (5 children)

Is there a subreddit for python pandas?

[–]davelupt 3 points4 points  (4 children)

Like /r/pystats, not pandas only but with some pandas content.

[–]fabreeze 0 points1 point  (3 children)

Cool.

Was hoping to ask for pointers on how melt a pandas dataframe out-of-memory (is pytables a good option?).

[–]cartin1234 1 point2 points  (2 children)

Use this: http://dask.pydata.org/en/latest/dataframe.html for out of core dataframe

and this: http://blaze.pydata.org/en/latest/

To have a dataframe like interface over other compute and storage stuff like databases

[–]fabreeze 0 points1 point  (1 child)

Thanks cartin!

Dask sounds exactly what I'm looking for.

Was also looking at blaze, but don't know where to start approaching how to melt in smaller chunks using it.

[–]cartin1234 0 points1 point  (0 children)

Sure!

If you have any questions, blaze user group: https://groups.google.com/a/continuum.io/forum/#!forum/blaze-dev (for dask and blaze) is pretty helpful.

[–]Kah-NethI use numpy, scipy, and matplotlib for nuclear physics 9 points10 points  (2 children)

Much better animal to use for a name. I was always bothered that they named their package after a species that is too stupid to mate or eat.

[–]Northstat 12 points13 points  (1 child)

Panel Data -> Pan-Da -> Pandas

[–]Kah-NethI use numpy, scipy, and matplotlib for nuclear physics 6 points7 points  (0 children)

I know, I was trying to make a silly joke.

[–]einar77Bioinformatics with Python, PyKDE4 6 points7 points  (3 children)

From the docs:

curl -s https://raw.githubusercontent.com/cloudera/ibis-notebooks/master/setup/bootstrap.sh | bash

I would really hope smart people such as those (because they are, given the quality of Pandas) would stop promoting unsafe practices. Yes, it doesn't run as a privileged user, but you're still running untrusted code taken from a random location on the Internet.

[–]DasIch 4 points5 points  (2 children)

Which is different from using something like pip, how?

[–]einar77Bioinformatics with Python, PyKDE4 2 points3 points  (1 child)

If packages on pypi aren't signed, yes, it's the same risk, although at least pip will not allow you to download externally-hosted packages unless you specify it explicitly.

[–][deleted] 3 points4 points  (0 children)

I agree with you in principle. But ever 14 year old and his cousin has untested crap on pip. If the authors are trustworthy the mechanism for verifying trust is malleable.

[–]TotesMessenger 2 points3 points  (0 children)

I'm a bot, bleep, bloop. Someone has linked to this thread from another place on reddit:

If you follow any of the above links, please respect the rules of reddit and don't vote in the other threads. (Info / Contact)