reloading icon indicating copy to clipboard operation
reloading copied to clipboard

Change Python code while it's running without losing state

Results 9 reloading issues
Sort by recently updated
recently updated
newest added

stat the file, or compare to previous hash, to only reload the code when changes occured.

Once step over reloading part, one step will exec to end.

Can you please upload your package to Conda-forge, it would be really useful it it were. Thanks

File "E:\newEnvironment\lib\site-packages\reloading\reloading.py", line 82, line83, in load_file with open(path, "r") as f: src = f.read() maybe could add encoding = "utf8"? Thanks

able to decorate class, able to decorate closures, enhanced exception handling

Example: ```python @reloading class myClass: def myFunction(self, a): print(a) def forLoopInFunction(self): for i in reloading(range(3)): if i == 1: return 'value' ```

Resolved a bug where only the first function decorated would be reloaded on subsequent invocations. - If having a similar decorated function in two different classes, only the first was...

```py from itertools import count from reloading import reloading for _ in reloading(count()): print('Lol') break ```