def get(self, item, default=None):
        """Gets a field in the layer, or the default if not found.

        Works the same way as getattr, but returns the given default if not the field was not found"""
        try:
            return getattr(self, item)
        except AttributeError:
            return default
Gets a field in the layer, or the default if not found.

        Works the same way as getattr, but returns the given default if not the field was not found
src/pyshark/packet/layers/base.py