[Python-3000-checkins] r66562 - python/branches/py3k/Modules/atexitmodule.c
skip at pobox.com
skip at pobox.com
Tue Sep 23 05:09:39 CEST 2008
>> To recap, executing this code:
>>
>> import sys, atexit
>> atexit.register(lambda: 1, 0, 0, (x for x in (1,2)), 0, 0)
>> sys.exit()
>>
>> crashes the interpreter. With the fix suggested by Christian that I
>> checked in it doesn't.
Benjamin> Well, should it raise a TypeError?
Yes, and the code already did that. That wasn't what I was fixing.
Perhaps the existing test cases were deficient in that regard, but that's a
different matter.
Skip
More information about the Python-3000-checkins
mailing list