exaloop / codon

A high-performance, zero-overhead, extensible Python compiler using LLVM
https://docs.exaloop.io/codon
Other
13.96k stars 498 forks source link

Division by zero returned inf #404

Closed likecodingloveproblems closed 11 months ago

likecodingloveproblems commented 1 year ago

In python when an integer divided by zero, ZeroDivisionError returned but when the code is compiled by codon the result is inf. to reproduce bug, you can run the below code.

def zero_division():
    print(1 / 0)
zero_division()
elisbyberi commented 1 year ago

@likecodingloveproblems Duplicate of #173 See: https://docs.exaloop.io/codon/general/releases#semantics

inumanag commented 11 months ago

Also: https://docs.exaloop.io/codon/general/differences