def __getattr__(self, item):
        for layer in self.layers:
            if layer.layer_name == item:
                return layer
        raise AttributeError()
Deleting an item, then inserting the same key again will place it
dataset/ETHPy150Open KimiNewt/pyshark/src/pyshark/packet/packet.py/Packet.__getattr__--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/tests/regressiontests/utils/datastructures.py/SortedDictTests.test_delete_and_insert