diff --git a/spec/API_specification/constants.rst b/spec/API_specification/constants.rst index aa278a360..4d71ed380 100644 --- a/spec/API_specification/constants.rst +++ b/spec/API_specification/constants.rst @@ -22,4 +22,5 @@ Objects in API e inf nan + newaxis pi diff --git a/spec/API_specification/signatures/constants.py b/spec/API_specification/signatures/constants.py index 813b6d079..18c8ac761 100644 --- a/spec/API_specification/signatures/constants.py +++ b/spec/API_specification/signatures/constants.py @@ -15,6 +15,11 @@ IEEE 754 floating-point representation of Not a Number (``NaN``). """ +newaxis = None +""" +An alias for ``None`` which is useful for indexing arrays. +""" + pi = 3.141592653589793 """ IEEE 754 floating-point representation of the mathematical constant ``π``. @@ -22,4 +27,4 @@ ``pi = 3.1415926535897932384626433...`` """ -__all__ = ['e', 'inf', 'nan', 'pi'] +__all__ = ['e', 'inf', 'nan', 'newaxis', 'pi']