Issue 26346: PySequenceMethods documentation missing sq_slice and sq_ass_slice (original) (raw)
Issue26346
Created on 2016-02-12 02:12 by atuining, last changed 2022-04-11 14:58 by admin.
Messages (3) | ||
---|---|---|
msg260154 - (view) | Author: Anthony Tuininga (atuining) * | Date: 2016-02-12 02:12 |
These methods are completely missing from the documentation found here: https://docs.python.org/3/c-api/typeobj.html | ||
msg260160 - (view) | Author: Martin Panter (martin.panter) * ![]() |
Date: 2016-02-12 04:16 |
Maybe they are missing because they don’t exist in Python 3 :) <https://hg.python.org/cpython/file/v3.5.1/Include/object.h#l291> Perhaps what is needed instead is a list of the actual fields in order, since I assume Python supports compilers that can’t use the designated initializer (PySequenceMethods){.sq_contains=...} syntax. | ||
msg260161 - (view) | Author: Anthony Tuininga (atuining) * | Date: 2016-02-12 04:31 |
Ah yes. The fields are still there, though, just marked as not used. Interestingly enough they aren't documented in the Python 2 documentation either....and they are in the Python 2.7 headers I have (not marked as unused either). Your suggestion makes sense. The reason I ran into it is I followed an example found in the core code for Python 3.5.1....which referenced sq_slice and sq_ass_slice in the order they are defined in the structure... |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-11 14:58:27 | admin | set | github: 70534 |
2021-11-27 14:28:50 | iritkatriel | set | type: enhancementcomponents: + C APIversions: + Python 3.11, - Python 3.5 |
2016-02-12 04:31:13 | atuining | set | messages: + |
2016-02-12 04:16:25 | martin.panter | set | nosy: + martin.pantermessages: + |
2016-02-12 02:12:33 | atuining | create |