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.

Author josh.r
Recipients josh.r, matrixise, serhiy.storchaka
Date 2019-03-18.19:06:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1552935968.44.0.215613331366.issue36347@roundup.psfhosted.org>
In-reply-to
Content
Serhiy: Problem is that READONLY already exists, so PY_READWRITE would be inconsistent.

Given currently READONLY is just defined as:

#define READONLY 1

I suppose a solution to maintain consistency (of a sort) would be to add the definitions:

#define PY_READWRITE 0
#define PY_READONLY 1

leaving READONLY defined as well for backwards compatibility.

Names chosen are public names, since I'm pretty sure READONLY is considered part of the public API, given that PyMemberDef and its fields definitely are, and it would be impossible to use the flags field correctly if READONLY wasn't part of the public API.
History
Date User Action Args
2019-03-18 19:06:08josh.rsetrecipients: + josh.r, serhiy.storchaka, matrixise
2019-03-18 19:06:08josh.rsetmessageid: <1552935968.44.0.215613331366.issue36347@roundup.psfhosted.org>
2019-03-18 19:06:08josh.rlinkissue36347 messages
2019-03-18 19:06:08josh.rcreate
Morty Proxy This is a proxified and sanitized view of the page, visit original site.