patchy icon indicating copy to clipboard operation
patchy copied to clipboard

:anchor: Patch the inner source of python functions at runtime.

Results 8 patchy issues
Sort by recently updated
recently updated
newest added

### Python Version 3.10 ### Package Version 2.6.0 ### Description Hi, Love this project! (I am unfamiliar with patching conventions so please excuse this if redundant). I am trying to...

```python import contextlib from concurrent import futures import patchy def sample(): return 1 patchy.prepare( sample, """\ @@ -1,2 +1,2 @@ def sample(): - return 1 + return 9001 """, )...

Sooo, I'm using Python 3.6.1 on a Win10 machine, inside the Mingw Bash environment that comes with the Windows Git client and I get: ValueError: Could not apply the patch...

### Description It would be nice to have a fallback to `patch` if subprocess is not supported on the platform like for example `emscripten`. An alternative could be https://github.com/conan-io/python-patch-ng.git but...

### Python Version 3.9.0 ### Package Version 2.6.0 ### Description Trying to patch `Foo.__init__` in this case: ```python class Foo: ANY_VALUE = 42 def __init__(self, any_value=ANY_VALUE): pass ``` Would cause...

updates: - [github.com/tox-dev/pyproject-fmt: 1.8.0 → 2.0.4](https://github.com/tox-dev/pyproject-fmt/compare/1.8.0...2.0.4)

This enables ipdb and friends to work properly if `breakpoint()` is added to the mutated function. Curious what you think of this approach. I can clean it up if you...