[issue44171] Cython cannot compile 'a = 5/6' and return 'a = 0'

2021-05-18 Thread Yao Zhang
Yao Zhang <792641...@qq.com> added the comment: I want 'a=5/6' to return 'a= 0.833.. 'after compilation. -- Added file: https://bugs.python.org/file50051/problem.py ___ Python tracker <https://bugs.python.org/i

[issue44171] Cython cannot compile 'a = 5/6' and return 'a = 0'

2021-05-18 Thread Yao Zhang
Yao Zhang <792641...@qq.com> added the comment: Thank you for your patient answer, but I still don't understand.I have uploaded my file (*.py).I hope you can solve my problem. I want 'a=5/6' to return 'a= 0.833.. 'after compilation. --原始邮件

[issue44171] Cython cannot compile 'a = 5/6' and return 'a = 0'

2021-05-18 Thread Yao Zhang
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 :

[issue44171] Cython cannot compile 'a = 5/6' and return 'a = 0'

2021-05-18 Thread Yao Zhang
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 :

[issue44171] Cython cannot compile 'a = 5/6' and return 'a = 0'

2021-05-18 Thread Yao Zhang
Yao Zhang <792641...@qq.com> added the comment: I'm not going to report the problem yet, I'm a rookie, and this is my first time to report the problem --原始邮件

[issue44171] Cython cannot compile 'a = 5/6' and return 'a = 0'

2021-05-18 Thread Yao Zhang
Change by Yao Zhang <792641...@qq.com>: -- components: Parser nosy: lys.nikolaou, pablogsal, zz792641209 priority: normal severity: normal status: open title: Cython cannot compile 'a = 5/6' and return 'a = 0' type: compile error versions: Pyth