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.
Created on 2015年04月27日 17:40 by berker.peksag, last changed 2022年04月11日 14:58 by admin. This issue is now closed.
| Messages (3) | |||
|---|---|---|---|
| msg242134 - (view) | Author: Berker Peksag (berker.peksag) * (Python committer) | Date: 2015年04月27日 17:40 | |
Looks like READ_RESTRICTED, PY_WRITE_RESTRICTED and RESTRICTED flags were used for "restricted mode" [1] in Python 2. "restricted mode" has been deprecated in Python 2.3. Also, the current documentation is outdated. WRITE_RESTRICTED is now PY_WRITE_RESTRICTED: https://docs.python.org/3/extending/newtypes.html#generic-attribute-management There are a few usages of these flags in the CPython source: PY_WRITE_RESTRICTED * Objects/funcobject.c * Objects/methodobject.c RESTRICTED * Objects/funcobject.c * Objects/classobject.c Are they still useful or can we deprecate/remove them now? [1] https://github.com/python/cpython/blob/2.7/Python/structmember.c#L180 |
|||
| msg242138 - (view) | Author: Antoine Pitrou (pitrou) * (Python committer) | Date: 2015年04月27日 17:47 | |
+1 for deprecating them. |
|||
| msg277984 - (view) | Author: Alexander Belopolsky (belopolsky) * (Python committer) | Date: 2016年10月03日 18:36 | |
See #2897 for a plan to deperecate Include/structmember.h. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:58:16 | admin | set | github: 68253 |
| 2016年10月04日 12:01:48 | berker.peksag | set | stage: needs patch -> resolved |
| 2016年10月03日 18:43:06 | belopolsky | link | issue2897 dependencies |
| 2016年10月03日 18:36:03 | belopolsky | set | status: open -> closed nosy: + belopolsky messages: + msg277984 superseder: PyMemberDef missing in limited API / Deprecate structmember.h resolution: duplicate |
| 2016年10月03日 18:35:06 | serhiy.storchaka | link | issue28349 superseder |
| 2015年05月13日 10:49:14 | berker.peksag | set | stage: needs patch |
| 2015年04月27日 17:47:07 | pitrou | set | nosy:
+ pitrou messages: + msg242138 |
| 2015年04月27日 17:40:18 | berker.peksag | create | |