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
% string formatting with multiple inputs via of tuples doesn't match python3.5 behavior #3092
I'm new to cython but this seems like incorrect behavior.
Python code put in cytest/test.py:
Before compilation the output of
After a pip install of cython==0.29.13 I compile with:
Now the output is:
This is the error I would get if did
The relevant c code output by cython is:
It looks like the __Pyx_PyUnicode_FormatSafe function is being used only in the first case and not in the second, which may or may not be relevant. I am using Python 3.5.2.
If there is any other information needed let me know
Looks like this is a difference between
I think the right fix would be to generate a bit of additional code that checks if the format value is an integer, and if not, passes it through