提交 7ddc630e authored 作者: Frederic's avatar Frederic

Added comment about int_division config flag.

上级 45f8baf1
...@@ -26,6 +26,11 @@ AddConfigVar('cast_policy', ...@@ -26,6 +26,11 @@ AddConfigVar('cast_policy',
), ),
) )
# python 2.* define int / int to return int and int // int to return int.
# python 3* define int / int to return float and int // int to return int.
# numpy 1.6.1 do as the python 2.*. I think we should not change it faster
# then numpy. When we will do the transition, we should create an int_warn
# and floatX_warn option.
AddConfigVar('int_division', AddConfigVar('int_division',
"What to do when one computes x / y, where both x and y are of " "What to do when one computes x / y, where both x and y are of "
"integer types", "integer types",
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论