Serhiy Storchaka added the comment: 1. In list.index use custom converter.
/*[python input] class slice_index_converter(CConverter): type = 'Py_ssize_t' converter = '_PyEval_SliceIndex' [python start generated code]*/ 2. In list.__init__ use either "unspecified" default value or optional group without default value. 3. This looks as Argument Clinic bug. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue20185> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com