Message171376
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. |
|
Date |
User |
Action |
Args |
2012-09-27 15:33:54 | mark.dickinson | set | recipients:
+ mark.dickinson, benjamin.peterson, serhiy.storchaka |
2012-09-27 15:33:54 | mark.dickinson | set | messageid: <1348760034.42.0.952860354689.issue16060@psf.upfronthosting.co.za> |
2012-09-27 15:33:54 | mark.dickinson | link | issue16060 messages |
2012-09-27 15:33:53 | mark.dickinson | create | |
|