Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
C standard library
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Python === [[CPython]] includes wrappers for some of the C library functions in its own common library, and it also grants more direct access to C functions and variables via its ''{{mono|ctypes}}'' package.<ref>{{cite web |url=https://docs.python.org/3/library/ctypes.html |title=ctypes—A foreign function library for Python |publisher=docs.python.com |access-date=9 October 2024}}</ref> More generally, [[Python (programming language)|Python]] [[History of Python#Version 2|2.{{var|x}}]] specifies the built-in file objects as being “implemented using C's ''stdio'' package,"<ref>{{cite web |url=https://docs.python.org/2/library/stdtypes.html#bltin-file-objects#bltin-file-objects |title=The Python Standard Library, §5.9: File Objects |access-date=9 October 2024 |quote=File objects are implemented using C’s <i>stdio</i> package and can be created with the built-in <code>open()</code> function.}}</ref> and frequent reference is made to C standard library behaviors; the available operations ({{code|open|lang=python}}, {{code|read|lang=python}}, {{code|write|lang=python}} {{^|Could link these to Python2 docs, but I’m here for C and C++}}, etc.) are expected to have the same behavior as the corresponding C functions ({{code|fopen|lang=c}}, {{code|fread|lang=c}}, {{code|fwrite|lang=c}}, etc.). [[History of Python#Version 3|Python 3]]’s specification relies considerably less on C specifics than [[History of Python#Version 2|Python 2]], however.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)