Adding Mitogen plugin and strategy.

This commit is contained in:
2026-04-09 19:51:43 -04:00
parent a85f7f50e9
commit 3ae80ef3bb
115 changed files with 26212 additions and 0 deletions
@@ -0,0 +1,5 @@
import testmods.simple_pkg.b
def subtract_one_add_two(n):
return testmods.simple_pkg.b.subtract_one(n) + 2
@@ -0,0 +1,2 @@
def subtract_one(n):
return n - 1
@@ -0,0 +1,6 @@
# issue #590: this module imports a module that replaces itself in sys.modules
# during initialization.
import testmods.simple_pkg.replaces_self
def subtract_one(n):
return testmods.simple_pkg.replaces_self.subtract_one(n)
@@ -0,0 +1,4 @@
def ping(*args):
return args
@@ -0,0 +1,4 @@
# issue #590: this module replaces itself in sys.modules during initialization.
import sys
import testmods.simple_pkg.b
sys.modules[__name__] = testmods.simple_pkg.b