[issue36401] Readonly properties should be marked as such in help()

2019-03-24 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Hi Raymond, About the C API, I wanted to know that because I started to use neovim for the development of CPython mix between C and Python is really great with this tool. Also, I wanted to have the description of the C parts, example, when I have

[issue36401] Readonly properties should be marked as such in help()

2019-03-24 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue36401] Readonly properties should be marked as such in help()

2019-03-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 62be33870e2f8517314bf9c7275548e799296f7e by Raymond Hettinger in branch 'master': bpo-36401: Have help() show readonly properties separately (GH-12517) https://github.com/python/cpython/commit/62be33870e2f8517314bf9c7275548e799296f7e

[issue36401] Readonly properties should be marked as such in help()

2019-03-23 Thread Raymond Hettinger
Change by Raymond Hettinger : -- keywords: +patch pull_requests: +12468 stage: -> patch review ___ Python tracker ___ ___

[issue36401] Readonly properties should be marked as such in help()

2019-03-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: > but can we do the same thing with the PyGetSetDef declaration > for the C Part? The would likely take an API change. For now, using only what is already exposed in Python, we can only partition data descriptors in two groups: * Known to be readonly

[issue36401] Readonly properties should be marked as such in help()

2019-03-22 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: @Raymond +1 but can we do the same thing with the PyGetSetDef declaration for the C Part? -- nosy: +matrixise ___ Python tracker ___

[issue36401] Readonly properties should be marked as such in help()

2019-03-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: For property objects, we have to look at *fset* and *fdel* to find-out whether they are assignable: >>> A.rop.fset is None True >>> A.wandr.fset is None False -- ___ Python tracker

[issue36401] Readonly properties should be marked as such in help()

2019-03-22 Thread Raymond Hettinger
New submission from Raymond Hettinger : It is common to create read-only properties with the '@property' decoration but the existing help() output doesn't annotate them as such. One way to go is to annotate each one separately: |