Re: Fwd: Optional control over 0D array return behavior in PyArray_Return
Joren Hammudoglu via NumPy-Discussion <[email protected]> Sun, 12 Apr 2026 12:34:31 -0000
| Newsgroups | gmane.comp.python.numeric.general |
|---|---|
| Message-ID | <[email protected]> |
Although I'm in favor of migrating away from scalars in favor of 0d arrays, I don't like the idea of using a global state (flags, contextmanagers, etc) for this. Mostly because that isn't possible to write static type annotations for, can be problematic when using multiple threads or processes, and because it's a global state it'd also affect downstream libraries and likely breaking them. _______________________________________________ NumPy-Discussion mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3//lists/numpy-discussion.python.org Member address: [email protected]