I would like to add my voice to a call for single prefix (I like
PyArray_ for everything, but can live with npy_).   Presumably npy_
vs. NPY_ variation is supposed to distinguish between macros and C
language elements, but as long as the stem is properly capitalized, I
don't see a problem of using the same prefix for everything.

In any case, if more than one prefix is used, it would be helpful to
get some guidance on what to use when.

On 7/10/06, Russell E. Owen <[EMAIL PROTECTED]> wrote:
> In article <[EMAIL PROTECTED]>,
>  Travis Oliphant <[EMAIL PROTECTED]> wrote:
>
> > 3) C-API names have prefix PyArray_ (like always), NPY_ or npy_.
> >
> >    The NPY_ and npy_ prefixes are new and were done to remove the
> >    likelihood of name collisions when NumPy is used with another
> >    library.  The old (and un-prefixed) names are accessible by
> >    importing numpy/noprefix.h  instead of numpy/arrayobject.h
>
> This may be too late or too picky, but...
>
> This seems like too many choices, leading to possible confusion when
> reading other people's extensions or the numpy code itself. Could you
> standardize on one (I like npy_) or two (if you have to keep PyArray_
> for some reason and can't put it in a backwards-compatibility header
> somewhere).
>
> Overall it's great. I'm really glad to hear you're so close to freezing
> the features.
>
> -- Russell
>
>
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Numpy-discussion mailing list
> Numpy-discussion@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/numpy-discussion
>


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/numpy-discussion

Reply via email to