[pypy-svn] pypy default: (antocuni, fijal): always enable list_comprehension_operations, as translation relies on it

antocuni commits-noreply at bitbucket.org
Tue Jan 18 09:39:13 CET 2011


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: 
Changeset: r40831:b25415f37d33
Date: 2011-01-18 09:37 +0100
http://bitbucket.org/pypy/pypy/changeset/b25415f37d33/

Log:	(antocuni, fijal): always enable list_comprehension_operations, as
	translation relies on it

diff --git a/pypy/config/translationoption.py b/pypy/config/translationoption.py
--- a/pypy/config/translationoption.py
+++ b/pypy/config/translationoption.py
@@ -387,8 +387,9 @@
         else:
             raise ValueError(word)
 
-    hasbackendopts = 'nobackendopt' not in words
-    config.translation.suggest(list_comprehension_operations=hasbackendopts)
+    # list_comprehension_operations is needed for translation, because
+    # make_sure_not_resized often relies on it, so we always enable them
+    config.translation.suggest(list_comprehension_operations=True)
 
 # ----------------------------------------------------------------
 


More information about the Pypy-commit mailing list