goodboy / tractor

A distributed, structured concurrent runtime for Python (and friends)
GNU Affero General Public License v3.0
258 stars 12 forks source link

Proper `breakpoint()` hooking #351

Closed goodboy closed 1 year ago

goodboy commented 1 year ago

We were being super sloppy previous and leaking our override into Python's runtime 😂 This would result in a NoRuntime being raised on bp usage after runtime exit..

Again, much of this work needs final polish and refinement before we propose something more formal for https://github.com/python-trio/trio/issues/1155

This repairs that and will eventually come with at least one test to ensure everything works as expected outside trio/tractor, when the actor stack tears down.


Testing todo:

goodboy commented 1 year ago

Replaced by #362