Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
d6e8bd1a
提交
d6e8bd1a
authored
2月 25, 2008
作者:
Joseph Turian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fixes to work under python2.4
上级
baa19200
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
19 行增加
和
0 行删除
+19
-0
core.py
core.py
+2
-0
lib.py
gof/lib.py
+1
-0
python25.py
gof/python25.py
+14
-0
result.py
gof/result.py
+2
-0
没有找到文件。
core.py
浏览文件 @
d6e8bd1a
...
@@ -71,6 +71,8 @@ def _compile_dir():
...
@@ -71,6 +71,8 @@ def _compile_dir():
else
:
else
:
# use (and possibly create) a default code cache location
# use (and possibly create) a default code cache location
platform_id
=
platform
.
platform
()
+
'-'
+
platform
.
processor
()
platform_id
=
platform
.
platform
()
+
'-'
+
platform
.
processor
()
import
re
platform_id
=
re
.
sub
(
"[
\
(
\
)
\
s]+"
,
"_"
,
platform_id
)
cachedir
=
os
.
path
.
join
(
os
.
getenv
(
'HOME'
),
'.omega'
,
'compiledir_'
+
platform_id
)
cachedir
=
os
.
path
.
join
(
os
.
getenv
(
'HOME'
),
'.omega'
,
'compiledir_'
+
platform_id
)
if
not
os
.
access
(
cachedir
,
os
.
R_OK
|
os
.
W_OK
):
if
not
os
.
access
(
cachedir
,
os
.
R_OK
|
os
.
W_OK
):
#this may raise a number of problems, I think all of which are serious.
#this may raise a number of problems, I think all of which are serious.
...
...
gof/lib.py
浏览文件 @
d6e8bd1a
...
@@ -8,6 +8,7 @@ import env
...
@@ -8,6 +8,7 @@ import env
import
features
import
features
import
ext
import
ext
from
python25
import
all
__all__
=
[
'UNDEFINED'
,
__all__
=
[
'UNDEFINED'
,
'current_mode'
,
'current_mode'
,
...
...
gof/python25.py
0 → 100644
浏览文件 @
d6e8bd1a
import
sys
if
sys
.
version_info
[:
2
]
<
(
2
,
5
):
def
all
(
iterable
):
for
element
in
iterable
:
if
not
element
:
return
False
return
True
else
:
# Only bother with this else clause and the __all__ line if you are putting
# this in a separate file.
import
__builtin__
all
=
__builtin__
.
all
__all__
=
[
'all'
]
gof/result.py
浏览文件 @
d6e8bd1a
...
@@ -10,6 +10,8 @@ import unittest
...
@@ -10,6 +10,8 @@ import unittest
from
err
import
GofError
from
err
import
GofError
from
utils
import
AbstractFunctionError
from
utils
import
AbstractFunctionError
from
python25
import
all
__all__
=
[
'is_result'
,
'ResultBase'
,
'BrokenLink'
,
'BrokenLinkError'
]
__all__
=
[
'is_result'
,
'ResultBase'
,
'BrokenLink'
,
'BrokenLinkError'
]
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论