classification
Title: PySequenceMethods documentation missing sq_slice and sq_ass_slice
Type: Stage:
Components: Documentation Versions: Python 3.5
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: docs@python Nosy List: atuining, docs@python, martin.panter
Priority: normal Keywords:

Created on 2016-02-12 02:12 by atuining, last changed 2016-02-12 04:31 by atuining.

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) * (Python committer) 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
2016-02-12 04:31:13atuiningsetmessages: + msg260161
2016-02-12 04:16:25martin.pantersetnosy: + martin.panter
messages: + msg260160
2016-02-12 02:12:33atuiningcreate