diff options
author | Maggie Moss <MaggieMoss@users.noreply.github.com> | 2020-09-09 13:23:24 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-09 21:23:24 +0100 |
commit | 1b4552c5e8e925f24c15f707050f22c977171125 (patch) | |
tree | 15102b9c349e4cde9904a1eb3ec1cf3099b877bc /Include | |
parent | bpo-41687: Fix error handling in Solaris sendfile implementation (GH-22128) (diff) | |
download | cpython-1b4552c5e8e925f24c15f707050f22c977171125.tar.gz cpython-1b4552c5e8e925f24c15f707050f22c977171125.tar.bz2 cpython-1b4552c5e8e925f24c15f707050f22c977171125.zip |
bpo-41428: Implementation for PEP 604 (GH-21515)
See https://www.python.org/dev/peps/pep-0604/ for more information.
Co-authored-by: Pablo Galindo <pablogsal@gmail.com>
Diffstat (limited to 'Include')
-rw-r--r-- | Include/internal/pycore_unionobject.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Include/internal/pycore_unionobject.h b/Include/internal/pycore_unionobject.h new file mode 100644 index 00000000000..fa8ba6ed944 --- /dev/null +++ b/Include/internal/pycore_unionobject.h @@ -0,0 +1,17 @@ +#ifndef Py_INTERNAL_UNIONOBJECT_H +#define Py_INTERNAL_UNIONOBJECT_H +#ifdef __cplusplus +extern "C" { +#endif + +#ifndef Py_BUILD_CORE +# error "this header requires Py_BUILD_CORE define" +#endif + +PyAPI_FUNC(PyObject *) _Py_Union(PyObject *args); +PyAPI_DATA(PyTypeObject) _Py_UnionType; + +#ifdef __cplusplus +} +#endif +#endif /* !Py_INTERNAL_UNIONOBJECT_H */ |