[Numpy-discussion] &*(*&$%# Macros
Travis Oliphant
oliphant at enthought.com
Mon May 3 11:23:51 EDT 2010
Perhaps as part of the refactoring. But I am not sure how to quantify
too many public macros. This macro may need to be exposed.
--
(mobile phone of)
Travis Oliphant
Enthought, Inc.
1-512-536-1057
http://www.enthought.com
On May 3, 2010, at 1:22 AM, Charles R Harris
<charlesr.harris at gmail.com> wrote:
> Hi Travis,
>
> Could you remove this macro? It isn't py3k compliant because of the
> PyCobject and we have too many public macros already. Please make it
> part of the interface if it needs to be exposed, otherwise make it
> an inline function somewhere.
>
> #define PyDataType_GetDatetimeMetaData
> (descr) \
> ((descr->metadata == NULL) ?
> NULL : \
> ((PyArray_DatetimeMetaData *)(PyCObject_AsVoidPtr
> ( \
> PyDict_GetItemString(descr->metadata,
> NPY_METADATA_DTSTR)))))
>
> Chuck
>
>
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
More information about the NumPy-Discussion
mailing list