[issue22039] PyObject_SetAttr doesn't mention value = NULL

2022-01-19 Thread Irit Katriel
Irit Katriel added the comment: New changeset 0861a50bd434d1f3e12fe7122e37356f1fce93dc by Miss Islington (bot) in branch '3.10': bpo-22039: [doc] clarify that there are no plans to disable deleting an attribute via PyObject_SetAttr (GH-30639) (GH-30684)

[issue22039] PyObject_SetAttr doesn't mention value = NULL

2022-01-19 Thread miss-islington
miss-islington added the comment: New changeset 7b694b816f30c463ffcab0952d3319320d23e154 by Miss Islington (bot) in branch '3.9': [3.9] bpo-22039: [doc] clarify that there are no plans to disable deleting an attribute via PyObject_SetAttr (GH-30639) (GH-30685)

[issue22039] PyObject_SetAttr doesn't mention value = NULL

2022-01-19 Thread Irit Katriel
Change by Irit Katriel : -- resolution: duplicate -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue22039] PyObject_SetAttr doesn't mention value = NULL

2022-01-19 Thread Irit Katriel
Irit Katriel added the comment: New changeset 3bf6315c4cabf72d64e65e6f85bf72c65137255a by Irit Katriel in branch 'main': bpo-22039: [doc] clarify that there are no plans to disable deleting an attribute via PyObject_SetAttr (GH-30639)

[issue22039] PyObject_SetAttr doesn't mention value = NULL

2022-01-19 Thread miss-islington
Change by miss-islington : -- pull_requests: +28884 pull_request: https://github.com/python/cpython/pull/30685 ___ Python tracker ___

[issue22039] PyObject_SetAttr doesn't mention value = NULL

2022-01-19 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 6.0 -> 7.0 pull_requests: +28883 pull_request: https://github.com/python/cpython/pull/30684 ___ Python tracker

[issue22039] PyObject_SetAttr doesn't mention value = NULL

2022-01-17 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.4, Python 3.5 ___ Python tracker ___

[issue22039] PyObject_SetAttr doesn't mention value = NULL

2022-01-17 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +patch pull_requests: +28842 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30639 ___ Python tracker ___

[issue22039] PyObject_SetAttr doesn't mention value = NULL

2022-01-17 Thread Petr Viktorin
Petr Viktorin added the comment: This cannot be changed in 3.x, since the PyObject_DelAttr macro calls PyObject_SetAttr(..., NULL), and the macro is expanded in all extensions that use the stable ABI. (Technically, it would be possible to add a PyObject_SetAttr *macro* that would warn/fail,

[issue22039] PyObject_SetAttr doesn't mention value = NULL

2022-01-17 Thread Irit Katriel
Change by Irit Katriel : -- nosy: +petr.viktorin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22039] PyObject_SetAttr doesn't mention value = NULL

2022-01-17 Thread Irit Katriel
Irit Katriel added the comment: I read the python-dev thread now and I see it was decided that it’s not worth removing it. In recent versions of the doc it is mentioned that the function is in the stable ABI. Should we clarify exactly what is meant by ‘deprecated’? -- status:

[issue22039] PyObject_SetAttr doesn't mention value = NULL

2021-08-02 Thread Irit Katriel
Irit Katriel added the comment: This behaviour is documented as deprecated all the way back to 2.7. Should we repurpose the issue to removing it? Otherwise it can be closed. https://docs.python.org/2.7/c-api/object.html#c.PyObject_SetAttr -- nosy: +iritkatriel resolution: ->

[issue22039] PyObject_SetAttr doesn't mention value = NULL

2016-11-30 Thread Martin Panter
Martin Panter added the comment: As of Issue 25701, the null-to-delete feature is documented as being deprecated in favour of calling the related Del functions or macros. There was a python-dev thread at . I’m not sure if that is good

[issue22039] PyObject_SetAttr doesn't mention value = NULL

2016-11-29 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +martin.panter ___ Python tracker ___ ___

[issue22039] PyObject_SetAttr doesn't mention value = NULL

2015-12-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See two alternative issues: issue25701 for documenting existing behavior, and issue25773 for deprecating it (and converting PyObject_DelAttr to a function). -- nosy: +serhiy.storchaka ___ Python tracker

[issue22039] PyObject_SetAttr doesn't mention value = NULL

2014-07-22 Thread Antoine Pitrou
New submission from Antoine Pitrou: PyObject_SetAttr, when called with value == NULL, actually deletes the attribute, but the documentation doesn't say it. It mentions PyObject_DelAttr, but it is only a macro and can therefore not be looked up using e.g. ctypes. -- assignee: