def postfix(package):
<EOL>global decorating<EOL>origdecor = decorating<EOL>decorating = True<EOL>packsplit = _split_object(package, package.__name__,<EOL>resplit=True, packincl=["<STR_LIT>"], skipext=True)<EOL>for ot, ol in packsplit.items():<EOL><INDENT>for name, obj in ol:<EOL><INDENT>if hasattr(obj, "<STR_LIT>") or hasattr(obj, "<STR_LIT>"):<EOL><INDENT>continue<EOL><DEDENT>key = id(obj)<EOL>fqdn_ = _fqdn(obj, False)<EOL>if fqdn_ is None: <EOL><INDENT>continue<EOL><DEDENT>packname = fqdn_.split('<STR_LIT:.>')[<NUM_LIT:0>]<EOL>if key not in _decorated_o[packname] and key in _extended_objs:<EOL><INDENT>xobj = _extended_objs[key]<EOL>key = id(xobj)<EOL><DEDENT>if key in _decorated_o[packname]:<EOL><INDENT>target = _decorated_o[packname][key]<EOL>if target is not None and isinstance(target, CallingDecorator):<EOL><INDENT>clog = target(fqdn_, packname, None)<EOL>_safe_setattr(clog, "<STR_LIT>", obj)<EOL>_update_attrs(clog, obj)<EOL>setattr(package, name, clog)<EOL>dmsg = "<STR_LIT>"<EOL>msg.info(dmsg.format(name, target), <NUM_LIT:3>)<EOL><DEDENT><DEDENT><DEDENT><DEDENT>decorating = origdecor<EOL>
Makes sure that any additional imported names in the specified package
    that were decorated in the context of a *different* package still get
    redirected to the decorated objects.

    Args:
        package: package object to examine for compliance.

    Examples:
    When `scipy` is imported, it imports most of `numpy` automatically and then
    has references to the original, *undecorated* `numpy` functions. We use
    :func:`postfix` to set the `scipy` references to the decorated `numpy`
    functions.

    >>> import scipy
    >>> import acorn.numpy
    >>> from acorn.logging.decoration import postfix, decorate
    >>> decorate(scipy)
    >>> postfix(scipy)

    When we call :func:`decorate` on `scipy`, the references to `numpy`
    functions are ignored, because they don't belong to the `scipy`
    package. This filtering is a feature to prevent `acorn` repeatedly visiting
    commonly used modules that are imported.