Yao Zhang <792641...@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" <rep...@bugs.python.org>; 发送时间: 2021年5月19日(星期三) 凌晨0:35 收件人: "坏蛋"<792641...@qq.com>; 主题: [issue44171] Cython cannot compile 'a = 5/6' and return 'a = 0' Yao Zhang <792641...@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' ------------------&nbsp;原始邮件&nbsp;------------------ 发件人: "Python tracker" <rep...@bugs.python.org&gt;; 发送时间:&nbsp;2021年5月18日(星期二) 晚上10:56 收件人:&nbsp;"坏蛋"<792641...@qq.com&gt;; 主题:&nbsp;[issue44171] Cython cannot compile 'a = 5/6' and return 'a = 0' Pablo Galindo Salgado <pablog...@gmail.com&gt; 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:&nbsp; -&gt; not a bug stage:&nbsp; -&gt; resolved status: open -&gt; closed _______________________________________ Python tracker <rep...@bugs.python.org&gt; <https://bugs.python.org/issue44171&gt; _______________________________________ ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue44171> _______________________________________ ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue44171> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com