Skip to content
This repository was archived by the owner on Jun 11, 2025. It is now read-only.
This repository was archived by the owner on Jun 11, 2025. It is now read-only.

Facilitate user defined type factories #30

@Helveg

Description

@Helveg

Add patch.monkey entry point because

A) It's a pun I can't resist
B) The p property can then be monkey patched before it is imported by scripts.

The advertised objects should be factories for callables that take the PythonHocInterpreter as argument. The factories themselves are passed the entire PythonHocModule because they can't import patch (circular import as this entry point is called during import of the patch module).

Patch should also get a submodule monkey with in it a method patch because what's better than a pun? A double pun! And with patch.monkey.patch you should be able to watertightly patch some stuff like all the functions that can start a simulation

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions