MCPcopy Create free account
hub / github.com/apache/arrow / __new__

Method __new__

cpp/gdb_arrow.py:1560–1575  ·  view source on GitHub ↗
(cls, name, val)

Source from the content-addressed store, hash-verified

1558 """
1559
1560 def __new__(cls, name, val):
1561 # Lookup actual (derived) class to instantiate
1562 type_id = int(deref(val['type'])['id_'])
1563 type_class = lookup_type_class(type_id)
1564 if type_class is not None:
1565 cls = type_class.array_data_printer
1566 assert issubclass(cls, ArrayDataPrinter)
1567 self = object.__new__(cls)
1568 self.name = name
1569 self.val = val
1570 self.type_class = type_class
1571 self.type_name = type_class.name
1572 self.type_id = type_id
1573 self.offset = int(self.val['offset'])
1574 self.length = int(self.val['length'])
1575 return self
1576
1577 @property
1578 def type(self):

Callers

nothing calls this directly

Calls 3

derefFunction · 0.85
lookup_type_classFunction · 0.85
__new__Method · 0.45

Tested by

no test coverage detected