homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mark.dickinson
Recipients benjamin.peterson, mark.dickinson, serhiy.storchaka
Date 2012年09月27日.15:33:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1348760034.42.0.952860354689.issue16060@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2012年09月27日 15:33:54mark.dickinsonsetrecipients: + mark.dickinson, benjamin.peterson, serhiy.storchaka
2012年09月27日 15:33:54mark.dickinsonsetmessageid: <1348760034.42.0.952860354689.issue16060@psf.upfronthosting.co.za>
2012年09月27日 15:33:54mark.dickinsonlinkissue16060 messages
2012年09月27日 15:33:53mark.dickinsoncreate

AltStyle によって変換されたページ (->オリジナル) /