On 10/13/2016 09:02 AM, Steve Holden wrote:
> Hi Karlijn,
> The value of a Wiki is that it's user-editable. You have to create an
> account, then let us know what it is and we can add editing privileges.
> This looks like halfway reasonable content, but it would be MUCH better to
> link straight to the cheat sheet. Sending them through a landing page
> smacks of advertising, which is definitely not approved of in our
> informational pages.

In addition, external links have an irritating tendency to go stale.  A
lot of the "bugs" against the Python website end up dealing with this
very topic.

> regards
>  Steve
> PS: The usual abbreviation for "third" is "3rd", but the cheat sheet uses
> "3d". Also the line reading "x = my_list > 3" should almost certainly read
> "x = my_array > 3". Errors like that really reduce the value of the
> content, and make the authors seem unreliable.

looks like those were already corrected, cool.

For consistency purposes, note you can't actually run the numpy examples
as listed. That doesn't make things broken, but....

This line:

>>> import numpy as alias

could correct some of that - examples use np, so make it

>>> import numpy as np

or else just spell it out as numpy in the examples.

The "Selecting NumPy Elements" section might be better if you showed

your current 2-d line won't work on the example data you give.

In "NumPy Array Operations", you could save a line of precious real
estate here:

>>> x = my_array > 3
>>> x
  array([False, False, False,  True], dtype=bool)

By not assigning-then-printing (the other examples don't do it):

>>> my_array > 3
  array([False, False, False,  True], dtype=bool)

pydotorg-www mailing list

Reply via email to