[NumPy-Tickets] [NumPy] #1110: Error packing Numpy scalars with struct.pack

NumPy Trac numpy-tickets@scipy....
Sun Oct 24 11:13:19 CDT 2010


#1110: Error packing Numpy scalars with struct.pack
-----------------------------+----------------------------------------------
  Reporter:  bryancatanzaro  |       Owner:  somebody
      Type:  defect          |      Status:  closed  
  Priority:  normal          |   Milestone:          
 Component:  numpy.core      |     Version:  1.3.0   
Resolution:  invalid         |    Keywords:          
-----------------------------+----------------------------------------------
Changes (by pv):

  * status:  new => closed
  * resolution:  => invalid


Comment:

 It's a bug in the `struct` module, and not possible to work around.
 `get_wrapped_ulong` should call `get_pylong` to invoke the `__index__`
 method for non-PyLong objects, but it doesn't.

 Seems to be fixed in Python 2.7.

-- 
Ticket URL: <http://projects.scipy.org/numpy/ticket/1110#comment:10>
NumPy <http://projects.scipy.org/numpy>
My example project


More information about the NumPy-Tickets mailing list