DanielStutzbach / blist

A list-like type with better asymptotic performance and similar performance on small lists
Other
310 stars 36 forks source link

blist's sort method will crash when using cmp parameter #60

Closed wynemo closed 10 years ago

wynemo commented 10 years ago

it will crash the python interpreter

Python 2.6.6 (r266:84292, Dec 7 2011, 20:38:36) [GCC 4.4.6 20110731 (Red Hat 4.4.6-3)] on linux2 Type "help", "copyright", "credits" or "license" for more information.

import blist import blist l = blist.blist([1, 2]) l.sort(cmp = lambda x, y: cmp(x ,y)) Segmentation fault (core dumped)

the same problem occurs on windows python 2.7