[pygccxml-development] odd looking c++ construct in __array_1.pypp.hpp
Brought to you by:
mbaas,
roman_yakovenko
From: Gordon W. <gor...@gm...> - 2008-08-22 02:12:49
|
in this statement bpl::class_< wrapper_t >( name, bpl::no_init ) .def( "__getitem__" , &wrapper_t::item_ref , ( bpl::arg("index") ) , CallPolicies() ) .def( "__setitem__" , &wrapper_t::set_item , ( bpl::arg("index"), bpl::arg("value") ) , CallPolicies() ) .def( "__len__", &wrapper_t::len ); what does this line , ( bpl::arg("index"), bpl::arg("value") ) do? doesn't the use of the comma operator cause the result of the index part to be discarded? |