diff --git a/docs/CHANGES.rst b/docs/CHANGES.rst
index 91bc291..9af2e61 100644
--- a/docs/CHANGES.rst
+++ b/docs/CHANGES.rst
@@ -7,6 +7,9 @@ Changes
 - Warn when using another Python implementation than CPython as it is not safe to use RestrictedPython with other versions than CPyton.
   See https://bitbucket.org/pypy/pypy/issues/2653 for PyPy.
 
+- Allow to use list comprehensions in the default implementation of
+  ``RestrictionCapableEval.eval()``.
+
 4.0b2 (2017-09-15)
 ------------------
 
@@ -62,7 +65,7 @@ Changes
 
 - Mostly complete rewrite based on Python AST module.
   [loechel (Alexander Loechel), icemac (Michael Howitz), stephan-hof (Stephan Hofmockel), tlotze (Thomas Lotze)]
-  
+
 - Support Python versions 3.4 up to 3.6.
 
 - switch to pytest
diff --git a/src/RestrictedPython/Eval.py b/src/RestrictedPython/Eval.py
index 836ea5e..221cd2d 100644
--- a/src/RestrictedPython/Eval.py
+++ b/src/RestrictedPython/Eval.py
@@ -35,6 +35,11 @@ def default_guarded_getitem(ob, index):
     return ob[index]
 
 
+def default_guarded_getiter(ob):
+    # No restrictions.
+    return ob
+
+
 class RestrictionCapableEval(object):
     """A base class for restricted code."""
 
@@ -99,7 +104,8 @@ class RestrictionCapableEval(object):
 
         global_scope = {
             '_getattr_': default_guarded_getattr,
-            '_getitem_': default_guarded_getitem
+            '_getitem_': default_guarded_getitem,
+            '_getiter_': default_guarded_getiter,
         }
 
         global_scope.update(self.globals)

list comprehension expression raises "TypeError: 'NoneType' object is not subscriptable"
Tested with Python 3.6.1 with RestrictedPython 4.0b2:
```
(Pdb) RestrictionCapableEval('[item for item in [1,2]]').eval(context)
*** TypeError: 'NoneType' object is not subscriptable
(Pdb) [item for item in [1,2]]
[1, 2]
```

where context is:
```
(Pdb) context
{'variables': {'test_run_identifier': 'QA-240dc1b5-f6bd-11e7-888e-080027edbcd8-skin1', 'skin': 'skin1', 'datetime': '2018-01-11T11:49:48.439194', 'base_url': 'http://'}, 'len': <built-in function len>, 'list': <class 'list'>, 'match': <function match at 0x7f2b3c55bd90>}
```

Any suggestion?

Thanks in advance
diff --git a/tests/test_eval.py b/tests/test_eval.py
index 0499a04..d1acf10 100644
--- a/tests/test_eval.py
+++ b/tests/test_eval.py
@@ -95,3 +95,10 @@ def test_Eval__RestictionCapableEval__eval_1():
     ob.globals['c'] = 8
     result = ob.eval(dict(a=1, b=2, c=4))
     assert result == 11
+
+
+def test_Eval__RestictionCapableEval__eval__2():
+    """It allows to use list comprehensions."""
+    ob = RestrictionCapableEval("[item for item in (1, 2)]")
+    result = ob.eval({})
+    assert result == [1, 2]

pip install -e .[develop,docs,test]
parse_log_pytest
requirements.txt
pytest pytest-cov
apt-get update apt-get install -y gcc
3.6
requirements/base.txt
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
alabaster==0.7.13
attrs==22.2.0
Babel==2.11.0
certifi==2021.5.30
charset-normalizer==2.0.12
coverage==6.2
docutils==0.18.1
fancycompleter==0.9.1
idna==3.10
imagesize==1.4.1
importlib-metadata==4.8.3
iniconfig==1.1.1
isort==5.10.1
Jinja2==3.0.3
MarkupSafe==2.0.1
packaging==21.3
pdbpp==0.10.3
pluggy==1.0.0
py==1.11.0
Pygments==2.14.0
pyparsing==3.1.4
pyrepl==0.9.0
pytest==7.0.1
pytest-cov==4.0.0
pytest-mock==3.6.1
pytz==2025.2
requests==2.27.1
-e git+https://github.com/zopefoundation/RestrictedPython.git@a63f5c3b600b00cb5bbe779b31e75e94413f8390#egg=RestrictedPython
snowballstemmer==2.2.0
Sphinx==5.3.0
sphinxcontrib-applehelp==1.0.2
sphinxcontrib-devhelp==1.0.2
sphinxcontrib-htmlhelp==2.0.0
sphinxcontrib-jsmath==1.0.1
sphinxcontrib-qthelp==1.0.3
sphinxcontrib-serializinghtml==1.1.5
tomli==1.2.3
typing_extensions==4.1.1
urllib3==1.26.20
wmctrl==0.5
zipp==3.6.0

name: RestrictedPython
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - certifi=2021.5.30=py36h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.3=he6710b0_2
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=1.1.1w=h7f8727e_0
  - pip=21.2.2=py36h06a4308_0
  - python=3.6.13=h12debd9_1
  - readline=8.2=h5eee18b_0
  - setuptools=58.0.4=py36h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - wheel=0.37.1=pyhd3eb1b0_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - alabaster==0.7.13
      - attrs==22.2.0
      - babel==2.11.0
      - charset-normalizer==2.0.12
      - coverage==6.2
      - docutils==0.18.1
      - fancycompleter==0.9.1
      - idna==3.10
      - imagesize==1.4.1
      - importlib-metadata==4.8.3
      - iniconfig==1.1.1
      - isort==5.10.1
      - jinja2==3.0.3
      - markupsafe==2.0.1
      - packaging==21.3
      - pdbpp==0.10.3
      - pluggy==1.0.0
      - py==1.11.0
      - pygments==2.14.0
      - pyparsing==3.1.4
      - pyrepl==0.9.0
      - pytest==7.0.1
      - pytest-cov==4.0.0
      - pytest-mock==3.6.1
      - pytz==2025.2
      - requests==2.27.1
      - snowballstemmer==2.2.0
      - sphinx==5.3.0
      - sphinxcontrib-applehelp==1.0.2
      - sphinxcontrib-devhelp==1.0.2
      - sphinxcontrib-htmlhelp==2.0.0
      - sphinxcontrib-jsmath==1.0.1
      - sphinxcontrib-qthelp==1.0.3
      - sphinxcontrib-serializinghtml==1.1.5
      - tomli==1.2.3
      - typing-extensions==4.1.1
      - urllib3==1.26.20
      - wmctrl==0.5
      - zipp==3.6.0
prefix: /opt/conda/envs/RestrictedPython

tests/test_eval.py::test_Eval__RestictionCapableEval__eval__2
tests/test_eval.py::test_init tests/test_eval.py::test_init_with_syntax_error tests/test_eval.py::test_prepRestrictedCode tests/test_eval.py::test_call tests/test_eval.py::test_eval tests/test_eval.py::test_Eval__RestrictionCapableEval_1 tests/test_eval.py::test_Eval__RestrictionCapableEval__2 tests/test_eval.py::test_Eval__RestictionCapableEval__prepUnrestrictedCode_1 tests/test_eval.py::test_Eval__RestictionCapableEval__prepUnrestrictedCode_2 tests/test_eval.py::test_Eval__RestictionCapableEval__prepRestrictedCode_1 tests/test_eval.py::test_Eval__RestictionCapableEval__eval_1
docs/CHANGES.rst src/RestrictedPython/Eval.py
docs/CHANGES.rst src/RestrictedPython/Eval.py