aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaggie Moss <MaggieMoss@users.noreply.github.com>2020-09-09 13:23:24 -0700
committerGitHub <noreply@github.com>2020-09-09 21:23:24 +0100
commit1b4552c5e8e925f24c15f707050f22c977171125 (patch)
tree15102b9c349e4cde9904a1eb3ec1cf3099b877bc /Include/internal
parentbpo-41687: Fix error handling in Solaris sendfile implementation (GH-22128) (diff)
downloadcpython-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/internal')
-rw-r--r--Include/internal/pycore_unionobject.h17
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 0000000000..fa8ba6ed94
--- /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 */