[issue19863] Missing function attributes in 2.7 docs.

New submission from Mark Dickinson: The attached patch fills in some missing function attributes from the Python 2.7 datamodel docs. ---------- assignee: docs@python components: Documentation files: missing_function_attributes.patch keywords: patch messages: 205038 nosy: docs@python, mark.dickinson priority: normal severity: normal status: open title: Missing function attributes in 2.7 docs. versions: Python 2.7 Added file: http://bugs.python.org/file32938/missing_function_attributes.patch _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue19863> _______________________________________

Serhiy Storchaka added the comment: Perhaps aliases should be added in same cell as original names? +-----------------------+-------------------------------+-----------+ | :attr:`func_code`, | The code object representing | Writable | | :attr:`__code__` | the compiled function body. | | +-----------------------+-------------------------------+-----------+ Or add new "Alias" column? ---------- nosy: +serhiy.storchaka _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue19863> _______________________________________

Mark Dickinson added the comment:
Perhaps aliases should be added in same cell as original names?
That sounds good to me. Perhaps with a single explanatory line below the table to explain that the double-underscore variants were introduced for compatibility with Python 3. ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue19863> _______________________________________

Mark Dickinson added the comment: Updated patch. ---------- Added file: http://bugs.python.org/file32939/missing_function_attributes_v2.patch _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue19863> _______________________________________

Serhiy Storchaka added the comment: Then write the double-underscore variants at first place. ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue19863> _______________________________________

Serhiy Storchaka added the comment: LGTM, but may be write Py3k compatible names at first place? ---------- stage: -> commit review type: -> behavior _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue19863> _______________________________________

Changes by Serhiy Storchaka <storchaka@gmail.com>: ---------- assignee: docs@python -> mark.dickinson _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue19863> _______________________________________

Mark Dickinson added the comment:
LGTM, but may be write Py3k compatible names at first place?
Sure; I don't have strong opinions either way. ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue19863> _______________________________________

Raymond Hettinger added the comment:
LGTM, but may be write Py3k compatible names at first place?
+1 ---------- nosy: +rhettinger _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue19863> _______________________________________

Mark Dickinson added the comment: New changeset fed468670866 by Mark Dickinson in branch '2.7': Issue #19683: Add __closure__ and other missing attributes to function docs. http://hg.python.org/cpython/rev/fed468670866 ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue19863> _______________________________________

Changes by Mark Dickinson <dickinsm@gmail.com>: ---------- resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue19863> _______________________________________
participants (3)
-
Mark Dickinson
-
Raymond Hettinger
-
Serhiy Storchaka