import linecache
import sys
import types
-import itertools
__all__ = ['extract_stack', 'extract_tb', 'format_exception',
'format_exception_only', 'format_list', 'format_stack',
its.append(_iter_chain(context, None, seen))
its.append([(_context_message, None)])
its.append([(exc, custom_tb or exc.__traceback__)])
- return itertools.chain(*its)
+ # itertools.chain is in an extension module and may be unavailable
+ for it in its:
+ for x in it:
+ yield x
def print_exception(etype, value, tb, limit=None, file=None, chain=True):
Build
-----
+- Issue #3812: Failed to build python if configure --without-threads.
+
- Issue #3791: Remove the bsddb module from the Windows installer, and the
core bsddb library from the Windows build files.