code: def get(key, default=-1):
          
          if isinstance(key, int):
              return Packet(key)
          if key not in Packet._member_map_:
              extend_enum(Packet, key, default)
          return Packet[key]
docs: Backport support for original codes.