Argument Clinic's [python input]
blocks do not support /*
in literal strings
#128153
Labels
[python input]
blocks do not support /*
in literal strings
#128153
Bug report
Bug description:
The following is not a valid Python input clinic but should be:
Note that the inner C comment should be
*\/
because otherwise IDEs will consider the block comment to be closed resulting in syntax errors (for the C file). Another example is just:Both result in the following error (I've just added the AC directive in the first file I had opened):
For now the workaround is to break
/*
into multiple strings:x = "/" + "*"
for instance.CPython versions tested on:
CPython main branch
Operating systems tested on:
No response
The text was updated successfully, but these errors were encountered: