concept extension in category python

This is an excerpt from Manning's book Practices of the Python Pro.
Ease of generalization and extension—Code with one responsibility can be generalized to cover that responsibility for a number of use cases, or it can be broken up further to support more varied behavior. Code that does numerous things will have a hard time supporting such flexibility because it’s hard to see where changes may have an effect.
Duplicating some code and updating that new copy to do what you need is a perfectly valid approach to extension. I use this approach occasionally on my way to making the original code more extensible. By creating a duplicate version, altering it, and seeing how the two versions differ, I can more easily refactor that duplicated code back into a single, multipurpose version later. If you try to deduplicate code without a thorough understanding of all the ways it’s being used, you risk assuming too much and making your code inflexible to future changes. So remember, duplication is better than the wrong abstraction.

This is an excerpt from Manning's book Classic Computer Science Problems in Python.
Beyond the GPU, CPUs have extensions that can speed up vector/matrix processing. NumPy includes functions that make use of single instruction, multiple data (SIMD) instructions. SIMD instructions are special microprocessor instructions that allow multiple pieces of data to be processed at once. They are sometimes known as vector instructions.
Different microprocessors include different SIMD instructions. For example, the SIMD extension to the G4 (a PowerPC architecture processor found in early ’00s Macs) was known as AltiVec. ARM microprocessors, like those found in iPhones, have an extension known as NEON. And modern Intel microprocessors include SIMD extensions known as MMX, SSE, SSE2, and SSE3. Luckily, you do not need to know the differences. A library like NumPy will automatically choose the right instructions for computing efficiently on the underlying architecture that your program is running on.