# if you comment-out psyco, it runs fine import psyco psyco.full() # this happens with both wxpython 2.4.something and 2.5.3 import wx app = wx.PySimpleApp() f = wx.Frame(None,-1,"Psyco test case #14850") l = wx.ListCtrl(f, -1, style=wx.LC_REPORT) l.InsertColumn(0, "Stuff") l.InsertStringItem(0, "first item") def OnDrag(event): # following the steps from # http://wxwidgets.org/manuals/2.5.3/wx_wxdndoverview.html#wxdndoverview # make something to drag data = wx.TextDataObject("first item") # drag start dragSource = wx.DropSource(l) dragSource.SetData(data) result = dragSource.DoDragDrop(True) # <--- segfaults on this line # (...dragging...) # process the result # (but we don't care about the result -- it's just a string) wx.EVT_LIST_BEGIN_DRAG(l, l.GetId(), OnDrag) f.Show() app.MainLoop()