function: magic.patch

 rebind the 'name' on the 'namespace'  to the 'value',
        possibly and remember the original value. Multiple
        invocations to the same namespace/name pair will
        remember a list of old values.
    
def patch(namespace, name, value):

origin:<UNKNOWN>

where:

exceptions that might appear during execution:

function source:

def patch(namespace, name, value):
    """ rebind the 'name' on the 'namespace'  to the 'value',
        possibly and remember the original value. Multiple
        invocations to the same namespace/name pair will
        remember a list of old values.
    """
    nref = (namespace, name)
    orig = getattr(namespace, name)
    patched.setdefault(nref, []).append(orig)
    setattr(namespace, name, value)
    return orig

call sites:

called in /home/johnny/projects/merlinux/py/dist/py/magic/testing/test_patch.py

traceback magic.patch.0

called in /home/johnny/projects/merlinux/py/dist/py/magic/assertion.py

traceback magic.patch.1

called in /home/johnny/projects/merlinux/py/dist/py/magic/assertion.py

traceback magic.patch.2

called in /home/johnny/projects/merlinux/py/dist/py/magic/assertion.py

traceback magic.patch.3

called in /home/johnny/projects/merlinux/py/dist/py/magic/testing/test_patch.py

traceback magic.patch.4

called in /home/johnny/projects/merlinux/py/dist/py/magic/assertion.py

traceback magic.patch.5

called in /home/johnny/projects/merlinux/py/dist/py/magic/assertion.py

traceback magic.patch.6

called in /home/johnny/projects/merlinux/py/dist/py/magic/assertion.py

traceback magic.patch.7

called in /home/johnny/projects/merlinux/py/dist/py/magic/assertion.py

traceback magic.patch.8

called in /home/johnny/projects/merlinux/py/dist/py/magic/assertion.py

traceback magic.patch.9

called in /home/johnny/projects/merlinux/py/dist/py/magic/assertion.py

traceback magic.patch.10

called in /home/johnny/projects/merlinux/py/dist/py/magic/assertion.py

traceback magic.patch.11

called in /home/johnny/projects/merlinux/py/dist/py/magic/invoke.py

traceback magic.patch.12

called in None</home/johnny/projects/merlinux/py/dist/py/test/raises.py:20>

traceback magic.patch.13

called in /home/johnny/projects/merlinux/py/dist/py/test/deprecate.py

traceback magic.patch.14

called in /home/johnny/projects/merlinux/py/dist/py/magic/assertion.py

traceback magic.patch.15

called in /home/johnny/projects/merlinux/py/dist/py/magic/assertion.py

traceback magic.patch.16

called in /home/johnny/projects/merlinux/py/dist/py/magic/assertion.py

traceback magic.patch.17

called in /home/johnny/projects/merlinux/py/dist/py/magic/assertion.py

traceback magic.patch.18

called in /home/johnny/projects/merlinux/py/dist/py/test/deprecate.py

traceback magic.patch.19

called in /home/johnny/projects/merlinux/py/dist/py/magic/testing/test_patch.py

traceback magic.patch.20