[issue44171] Cython cannot compile 'a = 5/6' and return 'a = 0'
Yao Zhang
report at bugs.python.org
Tue May 18 12:37:52 EDT 2021
Yao Zhang <792641209 at qq.com> added the comment:
However, in the source code, the source code runs normally, and when compiled and encapsulated with Cython, an exception occurs,Trigger divisible 'a = 5 // 6',this possibility does not exist.I checked it out :'a = 1,b = 5 / 6 + a',return :'b = 0'
------------------ 原始邮件 ------------------
发件人: "Python tracker" <report at bugs.python.org>;
发送时间: 2021年5月19日(星期三) 凌晨0:35
收件人: "坏蛋"<792641209 at qq.com>;
主题: [issue44171] Cython cannot compile 'a = 5/6' and return 'a = 0'
Yao Zhang <792641209 at qq.com> added the comment:
However, in the source code, the source code runs normally, and when compiled and encapsulated with Cython, an exception occurs,Trigger divisible 'a = 5 // 6',this possibility does not exist.I checked it out :'a = 1,b = 5 / 6 + a',return :'a = 0'
------------------ 原始邮件 ------------------
发件人: "Python tracker" <report at bugs.python.org>;
发送时间: 2021年5月18日(星期二) 晚上10:56
收件人: "坏蛋"<792641209 at qq.com>;
主题: [issue44171] Cython cannot compile 'a = 5/6' and return 'a = 0'
Pablo Galindo Salgado <pablogsal at gmail.com> added the comment:
Closing as this is a Cython bug and not a CPython one. I also suspect this is triggering integer division and therefore is actually not a bug at all.
----------
resolution: -> not a bug
stage: -> resolved
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44171>
_______________________________________
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44171>
_______________________________________
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44171>
_______________________________________
More information about the Python-bugs-list
mailing list