numpy ufuncs don't have __qualname__
See original GitHub issueNumpy ufuncs have a __name__
, but don’t have a __qualname__
as defined in PEP 3155. Similarly, they don’t seem to define a __module__
.
(note that for numpy’s builtin ufuncs, the __qualname__
should simply be the same as the __name__
, e.g. np.sin.__qualname__ == 'sin'
)
Issue Analytics
- State:
- Created 9 years ago
- Comments:29 (27 by maintainers)
Top Results From Across the Web
Universal functions (ufunc) — NumPy v1.24 Manual
A universal function (or ufunc for short) is a function that operates on ndarrays in an element-by-element fashion, supporting array broadcasting, ...
Read more >NumPy в Twitter: „@__qualname__ @teoliphant 3/8 pygeos does ...
Does anyone know how to implement a user-defined numpy dtype for types with non-trivial destructors? I'm trying to make a dtype for: struct...
Read more >2046668 – numpy fails to build with Python 3.11: error
Bug 2046668 - numpy fails to build with Python 3.11: error: ... Future ufuncs should # possible add a specific qualname, or a...
Read more >core/__init__.py · jeris/numpy - Gemfury
Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. Please note that this module ... We have compiled some common reasons and troubleshooting...
Read more >__init__.py - " Contains the core of NumPy: ndarray, ufuncs ...
Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. ... make sense to add a `__qualname__` to ufuncs, to allow this more# explicitly...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Well, I’m the author of the PEP.
This is not irrelevant, because a ufunc can be attached to a different object (and this can be the only place it lives). Numba does this. (It is irrelevant for NumPy or SciPy, but not generally.)