Skip to content

fn try_to_bool calls __bool__ method instead of number slot boolean #6113

Closed

Description

@youknowone

Summary

fn try_to_bool is expected to call PyNumberSlots's boolean, but currently calling python __bool__

Details

Activity

  1. added a commit that references this issue on Oct 24, 2025
    50cff20
  2. youknowone commented on Nov 30, 2025

    @youknowone
    MemberAuthor

    @YashSuthar983 How did this work when you tried 50cff20?

  3. YashSuthar983 commented on Dec 4, 2025

    @YashSuthar983
    Contributor

    @youknowone sorry i was out of town . I will let you know ,let me continue on this.

  4. added a commit that references this issue on Dec 4, 2025
    628f59e
  5. added a commit that references this issue on Dec 4, 2025
    c2ca9a7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-vmArea: virtual machine

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions