| 206 | } |
| 207 | |
| 208 | long str_base::index(object_cref sub) const |
| 209 | { |
| 210 | long result = _BOOST_PYTHON_ASLONG(this->attr("index")(sub).ptr()); |
| 211 | if (PyErr_Occurred()) |
| 212 | throw_error_already_set(); |
| 213 | return result; |
| 214 | } |
| 215 | |
| 216 | long str_base::index(object_cref sub, object_cref start) const |
| 217 | { |