Mark Dickinson added the comment: Nice catch! And indeed, the following code generates a segfault on my machine:
class B(object): def __int__(self): return 43.0 class A(object): def __trunc__(self): return B() int(A()) The patch should probably include a regression test. ---------- nosy: +mark.dickinson priority: normal -> high _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue16060> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com