[Numpy-discussion] code review/build & test for datetime business day API

Stéfan van der Walt stefan at sun.ac.za
Mon Jul 25 16:46:12 EDT 2011


On Mon, Jul 25, 2011 at 1:02 PM, Mark Wiebe <mwwiebe at gmail.com> wrote:
>> Probably should have!  Either way, it's something to consider: if we
>> introduce those functions now, people will start to use them where
>> they are (np.xyz), introducing another change in usage comes 2.0 (or
>> 3.0 or whichever).
>
> Absolutely, do you have any suggestions about organizing the datetime
> functionality? It's as good a place as any to try applying a good namespace
> convention.

The first thought that comes to mind is simply to keep them in a
submodule, so that users can do something like:

from numpy.datetime import some_date_func

That convention should be very easy to support across the
restructuring.  The important thing then is to document clearly that
these functions are available.

Regards
Stéfan



More information about the NumPy-Discussion mailing list