(self, length, items)
| 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 | """ |
nothing calls this directly
no test coverage detected