mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +00:00
Ellipses -> Ellipsis rename (the dictionary really says that it should
be Ellipsis!). Bumped the API version because a linker-visible symbol is affected. Old C code will still compile -- there's a b/w compat macro. Similarly, old Python code will still run, builtin exports both Ellipses and Ellipsis.
This commit is contained in:
parent
8741b2b988
commit
e449af7da9
7 changed files with 28 additions and 24 deletions
|
@ -4,12 +4,12 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* The unique ellipses object "..." */
|
||||
/* The unique ellipsis object "..." */
|
||||
|
||||
extern DL_IMPORT(PyObject) _Py_EllipsesObject; /* Don't use this directly */
|
||||
|
||||
#define Py_Ellipses (&_Py_EllipsesObject)
|
||||
extern DL_IMPORT(PyObject) _Py_EllipsisObject; /* Don't use this directly */
|
||||
|
||||
#define Py_Ellipsis (&_Py_EllipsisObject)
|
||||
#define Py_Ellipses Py_Ellipsis /* For bad spellers like me :-( */
|
||||
|
||||
/* Slice object interface */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue