On Thu, Nov 26, 2020 at 9:08 AM Steven D'Aprano <st...@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.
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/QDF6TBVECS6DN5Q5O7SYPPAEXFCW75EW/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to