mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
GH-99005: More intrinsics (GH-100774)
* Remove UNARY_POSITIVE, LIST_TO_TUPLE and ASYNC_GEN_WRAP, replacing them with intrinsics.
This commit is contained in:
parent
659c2607f5
commit
78068126a1
16 changed files with 151 additions and 204 deletions
|
|
@ -1970,13 +1970,13 @@ PyTypeObject _PyAsyncGenWrappedValue_Type = {
|
|||
|
||||
|
||||
PyObject *
|
||||
_PyAsyncGenValueWrapperNew(PyObject *val)
|
||||
_PyAsyncGenValueWrapperNew(PyThreadState *tstate, PyObject *val)
|
||||
{
|
||||
_PyAsyncGenWrappedValue *o;
|
||||
assert(val);
|
||||
|
||||
#if _PyAsyncGen_MAXFREELIST > 0
|
||||
struct _Py_async_gen_state *state = get_async_gen_state();
|
||||
struct _Py_async_gen_state *state = &tstate->interp->async_gen;
|
||||
#ifdef Py_DEBUG
|
||||
// _PyAsyncGenValueWrapperNew() must not be called after _PyAsyncGen_Fini()
|
||||
assert(state->value_numfree != -1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue