diff options
author | Sayed Adel <seiko@imavr.com> | 2021-12-04 13:13:17 +0200 |
---|---|---|
committer | Sayed Adel <seiko@imavr.com> | 2021-12-12 12:55:12 +0200 |
commit | 8120e2c59b6e840a4bf673c4b0878403b9fd0eb6 (patch) | |
tree | be9e88b273233f813b43ae9039e9f9c53d0b6b36 /numpy/core/code_generators/ufunc_docstrings.py | |
parent | a81535a364ca2d5aa277977e53c4e2302cae8ea2 (diff) | |
download | numpy-8120e2c59b6e840a4bf673c4b0878403b9fd0eb6.tar.gz |
ENH: Generate the docstrings of umath into a separated C header
To allow access to the docstring of ufunc via
identifier #DOC_PLACE_OF_UFUNC, e.g. DOC_NUMPY_CORE_UMATH_ABSOLUTE.
This patch is part of a series of steps aimed at replacing template sources
and the umath python generator with C++ meta-programming.
Diffstat (limited to 'numpy/core/code_generators/ufunc_docstrings.py')
-rw-r--r-- | numpy/core/code_generators/ufunc_docstrings.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/numpy/core/code_generators/ufunc_docstrings.py b/numpy/core/code_generators/ufunc_docstrings.py index cd584eea7..5af03b9a1 100644 --- a/numpy/core/code_generators/ufunc_docstrings.py +++ b/numpy/core/code_generators/ufunc_docstrings.py @@ -4,18 +4,15 @@ Docstrings for generated ufuncs The syntax is designed to look like the function add_newdoc is being called from numpy.lib, but in this file add_newdoc puts the docstrings in a dictionary. This dictionary is used in -numpy/core/code_generators/generate_umath.py to generate the docstrings -for the ufuncs in numpy.core at the C level when the ufuncs are created -at compile time. +numpy/core/code_generators/generate_umath_doc.py to generate the docstrings +as a C #definitions for the ufuncs in numpy.core at the C level when the +ufuncs are created at compile time. """ import textwrap docdict = {} -def get(name): - return docdict.get(name) - # common parameter text to all ufuncs subst = { 'PARAMS': textwrap.dedent(""" |