Skip to content

Undocumented public APIs in Python 3.2 #55382

Closed

Description

@malemburg
BPO 11173
Nosy @malemburg, @birkenfeld, @pitrou, @vstinner, @iritkatriel

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2021-10-19.22:49:16.237>
created_at = <Date 2011-02-10.15:19:15.389>
labels = ['docs']
title = 'Undocumented public APIs in Python 3.2'
updated_at = <Date 2021-10-19.22:49:16.237>
user = 'https://github.com/malemburg'

bugs.python.org fields:

activity = <Date 2021-10-19.22:49:16.237>
actor = 'iritkatriel'
assignee = 'docs@python'
closed = True
closed_date = <Date 2021-10-19.22:49:16.237>
closer = 'iritkatriel'
components = ['Documentation']
creation = <Date 2011-02-10.15:19:15.389>
creator = 'lemburg'
dependencies = []
files = []
hgrepos = []
issue_num = 11173
keywords = []
message_count = 8.0
messages = ['128294', '128298', '128299', '128303', '128322', '287750', '404358', '404371']
nosy_count = 6.0
nosy_names = ['lemburg', 'georg.brandl', 'pitrou', 'vstinner', 'docs@python', 'iritkatriel']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = 'resolved'
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue11173'
versions = ['Python 3.2']

Activity

  1. malemburg commented on Feb 10, 2011

    @malemburg
    MemberAuthor

    Mark Shannon on python-dev:

    The following API functions were removed from 3.1.3:

    PyAST_Compile
    PyCObject_AsVoidPtr
    PyCObject_FromVoidPtr
    PyCObject_FromVoidPtrAndDesc
    PyCObject_GetDesc
    PyCObject_Import
    PyCObject_SetVoidPtr
    PyCode_CheckLineNumber
    Py_CompileStringFlags
    PyEval_CallObject
    PyOS_ascii_atof
    PyOS_ascii_formatd
    PyOS_ascii_strtod
    PyThread_exit_prog
    PyThread__PyThread_exit_prog
    PyThread__PyThread_exit_thread
    PyUnicode_SetDefaultEncoding

    And the following were added to 3.2,
    of which only 2 are documented:

    PyArg_ValidateKeywordArguments
    PyAST_CompileEx
    Py_CompileString
    Py_CompileStringExFlags
    PyErr_NewExceptionWithDoc (documented)
    PyErr_SyntaxLocationEx
    PyErr_WarnFormat
    PyFrame_GetLineNumber
    PyImport_ExecCodeModuleWithPathnames
    PyImport_GetMagicTag
    PyLong_AsLongLongAndOverflow (documented)
    PyModule_GetFilenameObject
    Py_SetPath
    PyStructSequence_GetItem
    PyStructSequence_NewType
    PyStructSequence_SetItem
    PySys_AddWarnOptionUnicode
    PySys_AddXOption
    PySys_FormatStderr
    PySys_FormatStdout
    PySys_GetXOptions
    PyThread_acquire_lock_timed
    PyType_FromSpec
    PyUnicode_AsUnicodeCopy
    PyUnicode_AsWideCharString
    PyUnicode_EncodeFSDefault
    PyUnicode_FSDecoder
    Py_UNICODE_strcat
    Py_UNICODE_strncmp
    Py_UNICODE_strrchr
    PyUnicode_TransformDecimalToASCII

    For added confusion PySys_SetArgvEx is documented as
    new in 3.2, but exists in 3.1.3

    Note that this only include functions.
    The API also includes a number of macros such as
    Py_False and Py_RETURN_FALSE, types ,
    and data like PyBool_Type.

  2. added
    docs
    on Feb 10, 2011
  3. vstinner commented on Feb 10, 2011

    @vstinner
    Member

    PyErr_WarnFormat

    is already documented in Doc/c-api/exceptions.rst

    PyImport_ExecCodeModuleWithPathnames

    is already documented in Doc/c-api/import.rst

    PyModule_GetFilenameObject

    is already documented in Doc/c-api/module.rst

    PySys_AddWarnOptionUnicode, PySys_FormatStderr and PySys_FormatStdout

    are already documented in Doc/c-api/sys.rst

    PyUnicode_AsUnicodeCopy, PyUnicode_AsWideCharString, PyUnicode_EncodeFSDefault and PyUnicode_FSDecoder

    are already documented in Doc/c-api/unicode.rst

    Mark Shannon should read the documentation more carefuly.

  4. vstinner commented on Feb 10, 2011

    @vstinner
    Member

    Py_UNICODE_strcat, Py_UNICODE_strncmp, Py_UNICODE_strrchr

    See issue bpo-10435 (with a patch) for these functions.

  5. pitrou commented on Feb 10, 2011

    @pitrou
    Member

    PyThread_acquire_lock_timed

    It's on purpose that I didn't document this one. I'm not sure the PyThread_ APIs should be used by third-party extensions; so I'd prefer to hear about potential users before starting documenting it (and being tied by compatibility issues).

  6. birkenfeld commented on Feb 10, 2011

    @birkenfeld
    Member

    In fact, most of the functions are documented. (Mark S. apparently referred to the "What's new" document when talking about "documented" functions.)

    Missing are:

    PyAST_CompileEx (because PyAST_Compile wasn't documented either)
    PyStructSequence_*
    PyType_FromSpec

    and the PyThread one which Antoine already mentioned.

  7. malemburg commented on Feb 14, 2017

    @malemburg
    MemberAuthor

    PyEval_CallObject wasn't removed. It's a macro now. And it was documented for a long time in Extending Python... in fact, the documentation was removed, not the API :-)

  8. iritkatriel commented on Oct 19, 2021

    @iritkatriel
    Member

    PyAST_CompileEx was removed in 3.10 and PyType_FromSpec, PyStructSequence_* are documented now.

    PyThread_acquire_lock_timed is not, but I understand this is deliberate.

    I think this is complete, so I'll close this if nobody will object.

  9. vstinner commented on Oct 19, 2021

    @vstinner
    Member

    I think this is complete, so I'll close this if nobody will object.

    I concur, please close it ;-)

  10. transferred this issue fromon Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    docs

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions