1def __getattr__(name):
2    if name != 'delgetattr':
3        raise AttributeError
4    del globals()['__getattr__']
5    raise AttributeError
6