(attr, method=True)
| 6752 | # Attributes |
| 6753 | |
| 6754 | def refer_to_array_attribute(attr, method=True): |
| 6755 | docstring = """ |
| 6756 | Scalar {} identical to the corresponding array attribute. |
| 6757 | |
| 6758 | Please see `ndarray.{}`. |
| 6759 | """ |
| 6760 | |
| 6761 | return attr, docstring.format("method" if method else "attribute", attr) |
| 6762 | |
| 6763 | |
| 6764 | add_newdoc('numpy.core.numerictypes', 'generic', |