File tree Expand file tree Collapse file tree
include/boost/python/suite/indexing Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -188,7 +188,7 @@ namespace boost { namespace python {
188188 private:
189189
190190 static void
191- base_append (Container& container, PyObject* v)
191+ base_append (Container& container, object v)
192192 {
193193 extract<data_type&> elem (v);
194194 // try if elem is an exact Data
@@ -214,12 +214,10 @@ namespace boost { namespace python {
214214 }
215215
216216 static void
217- base_extend (Container& container, PyObject* v)
217+ base_extend (Container& container, object v)
218218 {
219219 std::vector<data_type> temp;
220- handle<> l_ (borrowed (v));
221- object l (l_);
222- container_utils::extend_container (temp, l);
220+ container_utils::extend_container (temp, v);
223221 DerivedPolicies::extend (container, temp.begin (), temp.end ());
224222 }
225223 };
You can’t perform that action at this time.
0 commit comments