[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'

------------------&nbsp;原始邮件&nbsp;------------------
发件人:                                                                                                                        "Python tracker"                                                                                    <report at bugs.python.org&gt;;
发送时间:&nbsp;2021年5月18日(星期二) 晚上10:56
收件人:&nbsp;"坏蛋"<792641209 at qq.com&gt;;

主题:&nbsp;[issue44171] Cython cannot compile 'a = 5/6' and return 'a = 0'

Pablo Galindo Salgado <pablogsal at 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 <report at bugs.python.org&gt;
<https://bugs.python.org/issue44171&gt;
_______________________________________

----------

_______________________________________
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