Source

pypy / pypy / objspace / std / default.py

Full commit
"""Default implementation for some operation."""

from pypy.interpreter.error import OperationError, typed_unwrap_error_msg
from pypy.objspace.std.register_all import register_all


# __init__ should succeed if called internally as a multimethod

def init__ANY(space, w_obj, __args__):
    pass

def float_w__ANY(space,w_obj):
    raise OperationError(space.w_TypeError,
                         typed_unwrap_error_msg(space, "float", w_obj))

register_all(vars())