| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
I think this name is confusing because a function returning None also returns. |
Sorry, something went wrong.
| Py_ssize_t len = Py_SIZE(co); | ||
| for (int i = 0; i < len; i++) { | ||
| _Py_CODEUNIT inst = _Py_GetBaseCodeUnit(co, i); | ||
| if (inst.op.code == RETURN_VALUE) { |
There was a problem hiding this comment.
In the past we also had RETURN_CONST and we might have something like that in the future, so I think we should make this more robust. Perhaps add a macro in Include/internal/pycore_opcode_utils.h (say IS_RETURN_OPCODE). Also use this new macro in basicblock_returns in flowgraph.c.
Sorry, something went wrong.
There was a problem hiding this comment.
done
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
The function indicates whether or not the function has a return statement.
This is used by a later change related treating some functions like scripts.