mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
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>
This commit is contained in:
parent
fa8c9e7010
commit
1b4552c5e8
13 changed files with 693 additions and 17 deletions
17
Include/internal/pycore_unionobject.h
Normal file
17
Include/internal/pycore_unionobject.h
Normal file
|
@ -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 */
|
Loading…
Add table
Add a link
Reference in a new issue