-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
gh-119180: Add VALUE_WITH_FAKE_GLOBALS format to annotationlib #124415
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
Changes from 1 commit
ddacdb7
5bb1d1e
ab05089
3ba132a
26f1c7c
2012bb4
f77be37
80818c6
4081f8f
3d382ba
10df40d
718205f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -168,7 +168,7 @@ constevaluator_call(PyObject *self, PyObject *args, PyObject *kwargs) | |
return NULL; | ||
} | ||
PyObject *value = ((constevaluatorobject *)self)->value; | ||
if (format == 4) { // SOURCE | ||
if (format == 4) { // STRING | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The formats should be defined in C too. Macros are fine. I'm expecting There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I added a C enum for these. |
||
PyUnicodeWriter *writer = PyUnicodeWriter_Create(5); // cannot be <5 | ||
if (writer == NULL) { | ||
return NULL; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See related comments, I don't think the fact that
STRING
format is the int object 2 is or should be part of the interface. I don't want people hard-coding it.