Earlier quoted context omitted.
Since modshim isn't money patching and appears to only be wrapping the external API of a package, if the change is deep enough inside the package, wouldn't you end up reimplementing most of the package from the outside?
Modshim does more than just wrap the external API of a package - it allows you to tweak something internal to the module while leaving its interface alone, without having to re-implement most of the package in order to re-bind new versions of objects. There are a couple of example of this readme: (1) modifing the TextWrapper object but then use it through the textwrap library's wrap() function, and (2) modifing the r…
- what's the performance like for big packages (say, pytorch)? Have you done some benchmarking?
- is typing kept for the shims? My immediate guess, again, without even trying it out, is not. If yes, how?
edit: formatting