Re: [Numpy-discussion] adopting Python Style Guide for classes

2007-10-02 Thread Francesc Altet
A Tuesday 02 October 2007, Timothy Hochberg escrigué: > One approach would be CapWords the superclasses of these that are > subclassable, but leave the leaf types alone. For example, looking at > float32 and its bases : > >- numpy.generic -> numpy.Generic >- numpy.number -> numpy.Number >

Re: [Numpy-discussion] adopting Python Style Guide for classes

2007-10-02 Thread Francesc Altet
A Tuesday 02 October 2007, Robert Kern escrigué: > Matthew Brett wrote: > > On 10/2/07, Christopher Barker <[EMAIL PROTECTED]> wrote: > >> What is a "class" in this case -- with new-style classes, there is > >> no distinction between types and classes, so I guess they are all > >> classes, which me

Re: [Numpy-discussion] adopting Python Style Guide for classes

2007-10-02 Thread Timothy Hochberg
On 10/2/07, Christopher Barker <[EMAIL PROTECTED]> wrote: > > Jarrod Millman wrote: > > I am hoping that most of you agree with the general principle of > > bringing NumPy and SciPy into compliance with the standard naming > > conventions. > > +1 > > > 3. When we release NumPy 1.1, we will convert

Re: [Numpy-discussion] adopting Python Style Guide for classes

2007-10-02 Thread Robert Kern
Matthew Brett wrote: > On 10/2/07, Christopher Barker <[EMAIL PROTECTED]> wrote: >> What is a "class" in this case -- with new-style classes, there is no >> distinction between types and classes, so I guess they are all classes, >> which means lots of things like: >> >> numpy.float32 >> >> etc. et

Re: [Numpy-discussion] adopting Python Style Guide for classes

2007-10-02 Thread Matthew Brett
On 10/2/07, Christopher Barker <[EMAIL PROTECTED]> wrote: > Jarrod Millman wrote: > > I am hoping that most of you agree with the general principle of > > bringing NumPy and SciPy into compliance with the standard naming > > conventions. Excellent plan - and I think it will make the code considera

Re: [Numpy-discussion] adopting Python Style Guide for classes

2007-10-02 Thread Christopher Barker
Jarrod Millman wrote: > I am hoping that most of you agree with the general principle of > bringing NumPy and SciPy into compliance with the standard naming > conventions. +1 > 3. When we release NumPy 1.1, we will convert all (or almost all) > class names to CapWords. What's the backwards-c

Re: [Numpy-discussion] adopting Python Style Guide for classes

2007-10-02 Thread Pearu Peterson
Pearu Peterson wrote: .. > After fixing the class names in tests then how many classes use > camelcase style in numpy/distutils? How many of them are implementation .. ^^^ Btw, I meant numpy/scipy here. Pearu ___ Numpy-dis

Re: [Numpy-discussion] adopting Python Style Guide for classes

2007-10-02 Thread David M. Cooke
On Tue, Oct 02, 2007 at 09:12:43AM +0200, Pearu Peterson wrote: > > > Jarrod Millman wrote: > > Hello, > > > .. > > Please let me know if you have any major objections to adopting the > > Python class naming convention. > > I don't object. Me either. > > 2. Any one adding a new class to NumP

Re: [Numpy-discussion] adopting Python Style Guide for classes

2007-10-02 Thread Pearu Peterson
Jarrod Millman wrote: > Hello, > .. > Please let me know if you have any major objections to adopting the > Python class naming convention. I don't object. > Once we have agreed to using CapWords for classes, we will need to > decide what to do about our existing class names. Obviously, it is

[Numpy-discussion] adopting Python Style Guide for classes

2007-10-01 Thread Jarrod Millman
Hello, NumPy and SciPy should conform with Guido's style guide as closely as possible: http://www.python.org/dev/peps/pep-0008/ The only serious divergence that I am aware of between the NumPy and SciPy codebase and the Python recommended standards is in class naming. According to Guido, class n