[PATCH] plot_strings.py: Replace np.complex with complex

H.J. Lu hjl.tools@gmail.com
Tue Oct 21 23:31:07 GMT 2025


Replace np.complex with complex to fix numpy error:

AttributeError: module 'numpy' has no attribute 'complex'.
`np.complex` was a deprecated alias for the builtin `complex`. To
avoid this error in existing code, use `complex` by itself. Doing this
will not modify any behavior and is safe. If you specifically wanted
the numpy scalar type, use `np.complex128` here.
The aliases was originally deprecated in NumPy 1.20; for more details
and guidance see the original release note at:
    https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations

-- 
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-plot_strings.py-Replace-np.complex-with-complex.patch
Type: text/x-patch
Size: 1411 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/libc-alpha/attachments/20251022/29a0d0e6/attachment.bin>


More information about the Libc-alpha mailing list