Discussion:
[Python-3000-checkins] r66340 - in python/branches/py3k: Lib/traceback.py Misc/NEWS
hirokazu.yamamoto
2008-09-09 17:55:12 UTC
Permalink
Author: hirokazu.yamamoto
Date: Tue Sep 9 19:55:11 2008
New Revision: 66340

Log:
Issue #3812: Failed to build python if configure --without-threads.

Removed itertools usage from Lib/traceback.py, because itertools
is extension module, so maybe unavailable on build process.
(Lib/_dummy_thread.py uses Lib/traceback.py)

Reviewed by Amaury Forgeot d'Arc.

Modified:
python/branches/py3k/Lib/traceback.py
python/branches/py3k/Misc/NEWS

Modified: python/branches/py3k/Lib/traceback.py
==============================================================================
--- python/branches/py3k/Lib/traceback.py (original)
+++ python/branches/py3k/Lib/traceback.py Tue Sep 9 19:55:11 2008
@@ -3,7 +3,6 @@
import linecache
import sys
import types
-import itertools

__all__ = ['extract_stack', 'extract_tb', 'format_exception',
'format_exception_only', 'format_list', 'format_stack',
@@ -130,7 +129,10 @@
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):

Modified: python/branches/py3k/Misc/NEWS
==============================================================================
--- python/branches/py3k/Misc/NEWS (original)
+++ python/branches/py3k/Misc/NEWS Tue Sep 9 19:55:11 2008
@@ -165,6 +165,8 @@
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.

Loading...