This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: PySequenceMethods documentation missing sq_slice and sq_ass_slice
Type: enhancement Stage:
Components: C API, Documentation Versions: Python 3.11
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 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) * (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
2022-04-11 14:58:27adminsetgithub: 70534
2021-11-27 14:28:50iritkatrielsettype: enhancement
components: + C API
versions: + Python 3.11, - Python 3.5
2016-02-12 04:31:13atuiningsetmessages: + msg260161
2016-02-12 04:16:25martin.pantersetnosy: + martin.panter
messages: + msg260160
2016-02-12 02:12:33atuiningcreate