_contextvarsmodule.c.h 772 B

123456789101112131415161718192021222324252627
  1. /*[clinic input]
  2. preserve
  3. [clinic start generated code]*/
  4. #if defined(Py_BUILD_CORE) && !defined(Py_BUILD_CORE_MODULE)
  5. # include "pycore_gc.h" // PyGC_Head
  6. # include "pycore_runtime.h" // _Py_ID()
  7. #endif
  8. PyDoc_STRVAR(_contextvars_copy_context__doc__,
  9. "copy_context($module, /)\n"
  10. "--\n"
  11. "\n");
  12. #define _CONTEXTVARS_COPY_CONTEXT_METHODDEF \
  13. {"copy_context", (PyCFunction)_contextvars_copy_context, METH_NOARGS, _contextvars_copy_context__doc__},
  14. static PyObject *
  15. _contextvars_copy_context_impl(PyObject *module);
  16. static PyObject *
  17. _contextvars_copy_context(PyObject *module, PyObject *Py_UNUSED(ignored))
  18. {
  19. return _contextvars_copy_context_impl(module);
  20. }
  21. /*[clinic end generated code: output=1736c27450823e70 input=a9049054013a1b77]*/