| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
I don't think this should go in the generator object implementation. _types should implement it on its own.
Sorry, something went wrong.
| Py_CLEAR(gw->gw_gen); | ||
| Py_CLEAR(gw->gw_name); | ||
| Py_CLEAR(gw->gw_qualname); | ||
| if (gw->gw_weakreflist != NULL) |
There was a problem hiding this comment.
Per PEP 7, all if clauses are supposed to have braces.
Sorry, something went wrong.
| "__name__ must be set to a string object"); | ||
| return -1; | ||
| } | ||
| Py_XSETREF(gw->gw_name, Py_NewRef(value)); |
There was a problem hiding this comment.
We need a critical section if we're going to modify this in methods.
Sorry, something went wrong.
There was a problem hiding this comment.
Could you please give me some additional context on it?
I've just copied this code from gen_set_name function.
Does this mean that critical section is also needed in that func?
Sorry, something went wrong.
There was a problem hiding this comment.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.