itertools在GAE中不起作用?

use*_*561 2 python google-app-engine

错误日志:

2011-12-05 14:56:01.211

<type 'exceptions.AttributeError'>: 'module' object has no attribute 'product'
Traceback (most recent call last):
  File "/base/data/home/apps/s~ellipt-test/1.355173855249110456/helloworld.py", line 494, in <module>
    F16 = field_elements(2, 4)
  File "/base/data/home/apps/s~ellipt-test/1.355173855249110456/helloworld.py", line 218, in field_elements
    result = list(itertools.product(*([range(p)]*n)))
Run Code Online (Sandbox Code Playgroud)

有什么问题?在我的电脑上,脚本有效!

mil*_*ose 8

应用程序引擎的文档说:

您的应用程序可以在三种运行时环境中运行:[...]选择Python 2.5或实验性Python 2.7.

我假设这意味着默认的Python是版本2.5.

itertools.product()文件说:

2.6版中的新功能.

我对GAE并不熟悉,所以不确定如何将应用程序切换为使用2.7.