From: Bruce S. <Bru...@nc...> - 2009-01-10 22:30:15
|
Interesting points. Thanks for the insight. Bruce Sherwood Guy K. Kloss wrote: > On Fri, 09 Jan 2009 09:42:51 Bruce Sherwood wrote: >> I don't know why numpy made some seemingly trivial >> changes such as NewAxis -> newaxis. Annoying. > > I'd guess they did it as it's more PEP-8 compatible. NewAxis looks like a > class, whereas newaxis is an attribute, variable, or some other identifier. > numpy.newaxis is comparable to visual.color.magenta in a way. > > I'm glad that it's renamed, as it is not possible to create a NewAxis > instance, and therefore is much less confusing to the Python programmer. > > Guy > |