-
-
Notifications
You must be signed in to change notification settings - Fork 31.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Argument Clinic's [python input]
blocks do not support /*
in literal strings
#128153
Comments
/*
in literal strings[python input]
blocks do not support /*
in literal strings
Should it? This will generate a C compiler warning:
Would it not be better to use C++ style comments for these cases?
|
Oh I'm surprised about this. I'll need to check on my side if adding I'm going to sleep now so I'll need to think about feature this is a bug or not more tomorrow.
I think I can use |
For the linked use case, Suggesting to rebrand this issue as a feature request, and I'm aligned to reject that feature. |
I mean an exception to my own guidelines for me :')
I'm fine with a rejection since the workaround isn't really an issue (the only reason why |
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: