[NumPy-Tickets] [NumPy] #1682: ctypeslib.load_library isn't python 3 compatible.

NumPy Trac numpy-tickets@scipy....
Sat Nov 20 05:30:04 CST 2010


#1682: ctypeslib.load_library isn't python 3 compatible.
------------------------+---------------------------------------------------
 Reporter:  NeilMuller  |       Owner:  somebody
     Type:  defect      |      Status:  new     
 Priority:  normal      |   Milestone:  2.0.0   
Component:  Trac        |     Version:  1.5.0   
 Keywords:              |  
------------------------+---------------------------------------------------
 PEP 3110 changes the scoping of exceptions in python 3.

 ctypeslib.load_library assumes the old python 2 scoping, and will throw an
 UnboundLocalError rather than properly re-raising the ctypes exception as
 a result.

 The attached patch fixes this.

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


More information about the NumPy-Tickets mailing list