-
-
Notifications
You must be signed in to change notification settings - Fork 12k
Closed
Description
- Core functionality for supporting overrides:
- Initial implementation in pure Python (ENH: initial implementation of core
__array_function__machinery #12005) - Validate dispatcher functions in array_function_dispatch (ENH: Validate dispatcher functions in array_function_dispatch #12099)
Disable validation when not testing NumPy (if there is a measurable impact on import times)(unnecessary)
- Add a
.__skip_array_function__function attribute to allow for skipping__array_function__dispatch. (ENH: implement__skip_array_function__attribute for NEP-18 #13389)
- Initial implementation in pure Python (ENH: initial implementation of core
- Reimplement parts of
numpy/core/overrides.pyin C for speed (Tracking issue for implementation of NEP-18 (__array_function__) #12028):-
get_overloaded_types_and_args -
array_function_implementation_or_override -
ndarray.__array_function__? -
array_function_dispatch?
-
- Support overrides for all public NumPy functions
-
numpy.core- the easy part (ENH:
__array_function__support for most ofnumpy.core#12115) -
np.core.defchararray(ENH:__array_function__fornp.core.defchararray#12154) -
np.einsumandnp.block(ENH:__array_function__fornp.einsumandnp.block#12163)
- the easy part (ENH:
-
numpy.lib -
numpy.fft/numpy.linalg(ENH:__array_function__support fornp.fftandnp.linalg#12117) - functions currently written entirely in C: empty_like, concatenate, inner, where, lexsort, can_cast, min_scalar_type, result_type, dot, vdot, is_busday, busday_offset, busday_count, datetime_as_string (ENH:
__array_function__for multiarray functions #12175) - linspace
-
arange?
-
- Usability improvements
- better error message for unimplemented functions (MAINT: improved error message when no
__array_function__implementation found #12251) -
ndarray.__repr__should not rely on__array_function__(MAINT:ndarray.__repr__should not rely on__array_function__#12212) -
stacklevelshould be increased by 1 for wrapped functions, so tracebacks point to the right place (Warnings need different stacklevel after NEP 18 overrides #13329)
- better error message for unimplemented functions (MAINT: improved error message when no
- Fix all known bugs / downstream test failures
- pandas test failures: CI: Test failures on numpydev pandas-dev/pandas#23172
- dask test failures: array_function_dispatch() breaks inspect.getargspec/getfullargspec array_function_dispatch() breaks inspect.getargspec/getfullargspec #12225
- scipy test failures: hstack and column_stack no longer accept generators
- Documentation
- Release notes (Tracking issue for implementation of NEP-18 (__array_function__) #12028)
- Narrative docs
- Revised docstrings to clarify overloaded arguments?