Skip to content

Logical Error in Power Operator (**) #144935

@palashhazraofficial

Description

@palashhazraofficial

Bug report

Bug description:

# SUMMARY : Terminal (Python 3.14.0) returns 1 when it is 0**0 (zero to the power zero)

# RUN THIS CODE TO REPRODUCE THE ISSUE  : 
print (0 ** 0)

# EXPECTED RETURN : Infinity or Not Defined
# ACTUAL RETURN : 1

CPython versions tested on:

3.14

Operating systems tested on:

Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions