MCPcopy
hub / github.com/django/django / _set_list

Method _set_list

django/contrib/gis/geos/polygon.py:117–125  ·  view source on GitHub ↗
(self, length, items)

Source from the content-addressed store, hash-verified

115 raise TypeError(msg)
116
117 def _set_list(self, length, items):
118 # Getting the current pointer, replacing with the newly constructed
119 # geometry, and destroying the old geometry.
120 prev_ptr = self.ptr
121 srid = self.srid
122 self.ptr = self._create_polygon(length, items)
123 if srid:
124 self.srid = srid
125 capi.destroy_geom(prev_ptr)
126
127 def _get_single_internal(self, index):
128 """

Callers

nothing calls this directly

Calls 1

_create_polygonMethod · 0.95

Tested by

no test coverage detected