Skip to content

optimization: str(x) -> PyObject_Str(x) #3279

@jbrockmendel

Description

@jbrockmendel

AFAICT they are equivalent. Found a usage of PyObject_str here and it looks like the optimization isn't made in other places where we just do str(x).

I was happy to see that the usage of PyUnicode_Join was unnecessary.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions