On Thu, Nov 26, 2020 at 9:08 AM Steven D'Aprano <steve@pearwood.info> wrote:
> and simplifies implementation of the widely used convolution operation in signal processing.

For the benefit of the 99.9% of Python programmers who have no idea
what this "convolution operation" is, can you give an example? It's okay
if it is a simplified example, even pseudo-code, so long as it is
realistic.

As a member of that 0.1% who knows what a convolution operation is, I can say I absolutely don't want this! (I'm sure I'm not quite so elite as that, in reality).

If I really want a circular index, I know where the modulor operator is, and can write `lst[n%len(lst)]` if I am so inclined.  If I needed this niche case as a frequent thing, I can easily subclass list to do the circular behavior. Signal processing is a perfectly good thing to do, but it's definitely a 0.1% use case... probably less in pure Python.

If I actually want to do a convolution, I'm going to use NumPy, and know where `np.tile()` is.


--
The dead increasingly dominate and strangle both the living and the
not-yet born.  Vampiric capital and undead corporate persons abuse
the lives and control the thoughts of homo faber. Ideas, once born,
become abortifacients against new conceptions.