[NumPy-Tickets] [NumPy] #2237: Cannot subclass datetime64

NumPy Trac numpy-tickets@scipy....
Wed Oct 31 03:30:58 CDT 2012


#2237: Cannot subclass datetime64
------------------------+---------------------------------------------------
 Reporter:  sushido     |       Owner:  somebody
     Type:  defect      |      Status:  new     
 Priority:  high        |   Milestone:  1.7.0   
Component:  numpy.core  |     Version:  devel   
 Keywords:              |  
------------------------+---------------------------------------------------
 {{{
 >>> import numpy as np
 >>> class MyInt(np.int64):    pass
 >>> print type(MyInt())
 <class '__main__.MyInt'>
 }}}
 but:
 {{{
 >>> class datetime64z(np.datetime64):    pass
 >>> print type(datetime64z())
 <type 'numpy.datetime64'>
 }}}

-- 
Ticket URL: <http://projects.scipy.org/numpy/ticket/2237>
NumPy <http://projects.scipy.org/numpy>
My example project


More information about the NumPy-Tickets mailing list