Skip to content

Remove PyPayload::special_retrieve and replace to ArgIndex #4629

Description

@youknowone

PyPayload::special_retrieve is a wrong design because we can't distinguish real int and int created by __index__.

See ArgIntoBool, ArgIntoFloat and ArgIntoComplex for arguments calling type conversion magic method.
The name will be ArgIndex or ArgIntoIndex. I am not sure about the names.

The final step will be dividing original PyIntRef to PyIntRef and ArgIndex. This step will take time.

Activity

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-designAbout RustPython's own implementationA-stdlib

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions