[Numpy-discussion] Add guaranteed no-copy to array creation and reshape?

Ralf Gommers ralf.gommers at gmail.com
Thu Jan 10 23:25:26 EST 2019

On Wed, Jan 9, 2019 at 10:55 PM Eric Wieser <wieser.eric+numpy at gmail.com>

> Slicing is a lot more important than some keyword. And design-wise,
> filling the numpy namespace with singletons for keyword to other things in
> that same namespace just makes no sense to me.
> At least from the perspective of discoverability, you could argue that
> string constants form a namespace of their won, and so growing the “string”
> namespace is not inherently better than growing any other.
I don't really think those are valid arguments. Strings are not a
namespace, and if you want to make the analogy then it's at best a
namespace within the functions/methods that the strings apply to.
Discoverability: what is valid input for a keyword is discovered pretty
much exclusively by reading the docstring or html doc page of the function,
and not the docstring of some random object in the numpy namespace.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20190110/b2c1859c/attachment-0001.html>

More information about the NumPy-Discussion mailing list