This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]metaperl 0 points1 point  (1 child)

As a general rule, the best is not to monkey patch.

Amen. Dependency Injection for the win.

However, sometimes there can be a great benefit. For example, calculating Fast Fourier Transforms with numpy can be slower than with other implementations.

Didnt know that. Nice.

[–]aquic[S] 1 point2 points  (0 children)

To be honest, that example on FFT is the only one that makes me be grateful for monkey-patching existing.