[NumPy-Tickets] [NumPy] #1578: test_from_unicode crashes on Python 2.7 and Numpy 1.4.1

NumPy Trac numpy-tickets@scipy....
Tue Jan 3 09:41:27 CST 2012


#1578: test_from_unicode crashes on Python 2.7 and Numpy 1.4.1
-------------------------+--------------------------------------------------
  Reporter:  mbudisic    |       Owner:  somebody   
      Type:  defect      |      Status:  reopened   
  Priority:  normal      |   Milestone:  Unscheduled
 Component:  numpy.core  |     Version:  devel      
Resolution:              |    Keywords:             
-------------------------+--------------------------------------------------

Comment(by jmiessner):

 Background: Port NumPy to Python 2.7.1 custom built with VC++ 2010
 tools.[[BR]][[BR]]
 What I found is that some of the code (but not all) for Unicode object
 lifetime was copy-pasted from Python 2.x < 2.7. Python itself is used to
 reallocate/destroy the memory for such objects, but heap management for
 such objects changed in 2.7. Moral of the story: if you cut-and-paste
 code, make sure you get all of it.[[BR]][[BR]]
 There remains at least one more issue causing a crash so I won't attempt
 to patch this until I'm satisfied with my port. I'll leave it up to
 someone more familiar with NumPy to decide if Unicode lifetime support
 could and should be returned to Python.

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


More information about the NumPy-Tickets mailing list