python / cpython

The Python programming language
https://www.python.org/
Other
59.95k stars 29.02k forks source link

Some "Very High Level" functions aren't #32910

Closed a654c92e-48ec-42c6-8f4f-926b3ce5d62f closed 23 years ago

a654c92e-48ec-42c6-8f4f-926b3ce5d62f commented 23 years ago
BPO 211520
Nosy @freddrake

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: ```python assignee = 'https://github.com/freddrake' closed_at = created_at = labels = ['docs'] title = 'Some "Very High Level" functions aren\'t' updated_at = user = 'https://bugs.python.org/edream' ``` bugs.python.org fields: ```python activity = actor = 'fdrake' assignee = 'fdrake' closed = True closed_date = None closer = None components = ['Documentation'] creation = creator = 'edream' dependencies = [] files = [] hgrepos = [] issue_num = 211520 keywords = [] message_count = 2.0 messages = ['979', '980'] nosy_count = 2.0 nosy_names = ['fdrake', 'edream'] pr_nums = [] priority = 'normal' resolution = 'fixed' stage = None status = 'closed' superseder = None type = None url = 'https://bugs.python.org/issue211520' versions = [] ```

a654c92e-48ec-42c6-8f4f-926b3ce5d62f commented 23 years ago

The so-called "Very High Level" functions in the Python C API that take FILE * arguments will not work in a multi-compiler environment; each compiler's notion of a struct FILE will be different. From an implementation standpoint these are very _low_ level functions.

The Python documentation for these functions, and the "Extending and embedding" documentation, should make note of this potential problem.

BTW, there are situations in which a compiler other than the compiler used to compile Python will be used. Please don't try to make this bug go away by requiring the same compiler be used as was used to compile Python.

Edward

freddrake commented 23 years ago

Added advisory material in Doc/api/api.tex revision 1.77.