In [ ]:
import deprecated


@deprecated.deprecated('This function will be removed on Feb. 2100.')
def some_old_function(x, y):
    return x + y


@deprecated.deprecated('Use another class.')
class SomeOldClass(object):
    pass


some_old_function(2, 3)

old = SomeOldClass()
In [ ]:
!![email protected]@@384yhufj # test the behavior of invalid code


some_old_function(2, 3)
In [ ]: