Live data from Hacker News

From Python to Numpy

labri.fr

51–55 of 55 posts

Re: From Python to Numpy

#52
post #38

Does anyone have a recommendation for something similar to this but for Python itself? I have been trying to find something that is not necessarily an intro or crash course book but a book with tips, great explanations, and neat examples (which this e-book(?)/site has). I see that the author has responded to a couple comments here. Thank you for your great work! It's always great to have a nice reference material wit…

There's Fluent Python from OReilly which is a pretty good follow-on for people who are comfortable with the basics and want to know dig into some more advanced features: http://shop.oreilly.com/product/0636920032519.do

Yes, Effective Python is awesome!

Re: From Python to Numpy

#53

I'd be very curious to know if there is any impact to choosing Numpy C ordered arrays or Fortran ordered arrays. As a long time Matlab user (since 1993) who moved to Python 3 years ago, I have always defaulted to Fortran order because it was what I was used to and seemed more intuitive. I did play with C ordered arrays but didn't find an advantage in my limited investigation.

There may still be a few routines that expect C-ordered arrays and so require a copy be made when given a Fortran-ordered array --- especially as you extend to one of libraries that use NumPy. For the most, part, however, Fortran-ordered arrays should work well. It all comes down to the expectation of the routine writer.

Re: From Python to Numpy

#54
post #32

Earlier quoted context omitted.

You mean search? Not everybody uses a Mac ...

Yet somehow you figured out what he meant.

It was not tongue in cheek. I do not know what cmd is. I assume it is a modifier key in an Apple keyboard, since it is not in a Windows keyboard, which I have (although I am on linux).

Sure, I guess he means search, but he could just say that.

Or should I start talking using references to my keyboard shortcuts? I mostly use emacs, very often with custom bindings, or tmux, so it will not make sense to a lot of people.

But hey, it's a free world.

Re: From Python to Numpy

#55
post #32

Earlier quoted context omitted.

Yet somehow you figured out what he meant.

It was not tongue in cheek. I do not know what cmd is. I assume it is a modifier key in an Apple keyboard, since it is not in a Windows keyboard, which I have (although I am on linux). Sure, I guess he means search, but he could just say that. Or should I start talking using references to my keyboard shortcuts? I mostly use emacs, very often with custom bindings, or tmux, so it will not make sense to a lot of people.…

[deleted]
Post reply on HN