Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
optimization: str(x) -> PyObject_Str(x) #3279
Yes, they are equivalent.
The optimisation for the 1-argument case can follow this example:
Note that this needs to behave "as expected" for the three language levels 2, 3str and 3, but I think that should be ok. IIRC,