From: Guy K. K. <g....@ma...> - 2009-01-10 20:10:03
|
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 -- Guy K. Kloss Institute of Information and Mathematical Sciences Te Kura Pūtaiao o Mōhiohio me Pāngarau Room 2.63, Quad Block A Building Massey University, Auckland, Albany Private Bag 102 904, North Shore Mail Centre voice: +64 9 414-0800 ext. 9585 fax: +64 9 441-8181 eMail: G....@ma... http://iims.massey.ac.nz |