Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
cd881b85
Kaydet (Commit)
cd881b85
authored
Haz 21, 2015
tarafından
Serhiy Storchaka
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Fixed documentation of functions with const char* arguments.
üst
289dd191
03863d2b
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
19 additions
and
19 deletions
+19
-19
conversion.rst
Doc/c-api/conversion.rst
+2
-2
exceptions.rst
Doc/c-api/exceptions.rst
+4
-4
import.rst
Doc/c-api/import.rst
+2
-2
init.rst
Doc/c-api/init.rst
+1
-1
mapping.rst
Doc/c-api/mapping.rst
+1
-1
marshal.rst
Doc/c-api/marshal.rst
+1
-1
sys.rst
Doc/c-api/sys.rst
+2
-2
unicode.rst
Doc/c-api/unicode.rst
+1
-1
extending.rst
Doc/extending/extending.rst
+3
-3
extending.rst
Doc/faq/extending.rst
+2
-2
No files found.
Doc/c-api/conversion.rst
Dosyayı görüntüle @
cd881b85
...
...
@@ -119,13 +119,13 @@ The following functions provide locale-independent string to number conversions.
.. versionadded:: 3.1
.. c:function:: int PyOS_stricmp(c
har *s1,
char *s2)
.. c:function:: int PyOS_stricmp(c
onst char *s1, const
char *s2)
Case insensitive comparison of strings. The function works almost
identically to :c:func:`strcmp` except that it ignores the case.
.. c:function:: int PyOS_strnicmp(c
har *s1,
char *s2, Py_ssize_t size)
.. c:function:: int PyOS_strnicmp(c
onst char *s1, const
char *s2, Py_ssize_t size)
Case insensitive comparison of strings. The function works almost
identically to :c:func:`strncmp` except that it ignores the case.
Doc/c-api/exceptions.rst
Dosyayı görüntüle @
cd881b85
...
...
@@ -244,7 +244,7 @@ NULL pointer for use in a ``return`` statement.
.. versionadded:: 3.4
.. c:function:: void PyErr_SyntaxLocationEx(char *filename, int lineno, int col_offset)
.. c:function:: void PyErr_SyntaxLocationEx(c
onst c
har *filename, int lineno, int col_offset)
Like :c:func:`PyErr_SyntaxLocationObject`, but *filename* is a byte string
decoded from the filesystem encoding (:func:`os.fsdecode`).
...
...
@@ -252,7 +252,7 @@ NULL pointer for use in a ``return`` statement.
.. versionadded:: 3.2
.. c:function:: void PyErr_SyntaxLocation(char *filename, int lineno)
.. c:function:: void PyErr_SyntaxLocation(c
onst c
har *filename, int lineno)
Like :c:func:`PyErr_SyntaxLocationEx`, but the col_offset parameter is
omitted.
...
...
@@ -516,7 +516,7 @@ Signal Handling
Exception Classes
=================
.. c:function:: PyObject* PyErr_NewException(char *name, PyObject *base, PyObject *dict)
.. c:function:: PyObject* PyErr_NewException(c
onst c
har *name, PyObject *base, PyObject *dict)
This utility function creates and returns a new exception class. The *name*
argument must be the name of the new exception, a C string of the form
...
...
@@ -531,7 +531,7 @@ Exception Classes
argument can be used to specify a dictionary of class variables and methods.
.. c:function:: PyObject* PyErr_NewExceptionWithDoc(c
har *name,
char *doc, PyObject *base, PyObject *dict)
.. c:function:: PyObject* PyErr_NewExceptionWithDoc(c
onst char *name, const
char *doc, PyObject *base, PyObject *dict)
Same as :c:func:`PyErr_NewException`, except that the new exception class can
easily be given a docstring: If *doc* is non-*NULL*, it will be used as the
...
...
Doc/c-api/import.rst
Dosyayı görüntüle @
cd881b85
...
...
@@ -39,7 +39,7 @@ Importing Modules
behaviour isn't needed anymore.
.. c:function:: PyObject* PyImport_ImportModuleEx(char *name, PyObject *globals, PyObject *locals, PyObject *fromlist)
.. c:function:: PyObject* PyImport_ImportModuleEx(c
onst c
har *name, PyObject *globals, PyObject *locals, PyObject *fromlist)
.. index:: builtin: __import__
...
...
@@ -70,7 +70,7 @@ Importing Modules
.. versionadded:: 3.3
.. c:function:: PyObject* PyImport_ImportModuleLevel(char *name, PyObject *globals, PyObject *locals, PyObject *fromlist, int level)
.. c:function:: PyObject* PyImport_ImportModuleLevel(c
onst c
har *name, PyObject *globals, PyObject *locals, PyObject *fromlist, int level)
Similar to :c:func:`PyImport_ImportModuleLevelObject`, but the name is an
UTF-8 encoded string instead of a Unicode object.
...
...
Doc/c-api/init.rst
Dosyayı görüntüle @
cd881b85
...
...
@@ -86,7 +86,7 @@ Process-wide parameters
=======================
.. c:function:: int Py_SetStandardStreamEncoding(c
har *encoding,
char *errors)
.. c:function:: int Py_SetStandardStreamEncoding(c
onst char *encoding, const
char *errors)
.. index::
single: Py_Initialize()
...
...
Doc/c-api/mapping.rst
Dosyayı görüntüle @
cd881b85
...
...
@@ -34,7 +34,7 @@ Mapping Protocol
failure. This is equivalent to the Python statement ``del o[key]``.
.. c:function:: int PyMapping_HasKeyString(PyObject *o, char *key)
.. c:function:: int PyMapping_HasKeyString(PyObject *o, c
onst c
har *key)
On success, return ``1`` if the mapping object has the key *key* and ``0``
otherwise. This is equivalent to the Python expression ``key in o``.
...
...
Doc/c-api/marshal.rst
Dosyayı görüntüle @
cd881b85
...
...
@@ -88,7 +88,7 @@ written using these routines?
:exc:`TypeError`) and returns *NULL*.
.. c:function:: PyObject* PyMarshal_ReadObjectFromString(char *string, Py_ssize_t len)
.. c:function:: PyObject* PyMarshal_ReadObjectFromString(c
onst c
har *string, Py_ssize_t len)
Return a Python object from the data stream in a character buffer
containing *len* bytes pointed to by *string*.
...
...
Doc/c-api/sys.rst
Dosyayı görüntüle @
cd881b85
...
...
@@ -110,12 +110,12 @@ These are utility functions that make functionality from the :mod:`sys` module
accessible to C code. They all work with the current interpreter thread's
:mod:`sys` module's dict, which is contained in the internal thread state structure.
.. c:function:: PyObject *PySys_GetObject(char *name)
.. c:function:: PyObject *PySys_GetObject(c
onst c
har *name)
Return the object *name* from the :mod:`sys` module or *NULL* if it does
not exist, without setting an exception.
.. c:function:: int PySys_SetObject(char *name, PyObject *v)
.. c:function:: int PySys_SetObject(c
onst c
har *name, PyObject *v)
Set *name* in the :mod:`sys` module to *v* unless *v* is *NULL*, in which
case *name* is deleted from the sys module. Returns ``0`` on success, ``-1``
...
...
Doc/c-api/unicode.rst
Dosyayı görüntüle @
cd881b85
...
...
@@ -1635,7 +1635,7 @@ They all return *NULL* or ``-1`` if an exception occurs.
respectively.
.. c:function:: int PyUnicode_CompareWithASCIIString(PyObject *uni, char *string)
.. c:function:: int PyUnicode_CompareWithASCIIString(PyObject *uni, c
onst c
har *string)
Compare a unicode object, *uni*, with *string* and return -1, 0, 1 for less
than, equal, and greater than, respectively. It is best to pass only
...
...
Doc/extending/extending.rst
Dosyayı görüntüle @
cd881b85
...
...
@@ -600,7 +600,7 @@ Extracting Parameters in Extension Functions
The :c:func:`PyArg_ParseTuple` function is declared as follows::
int PyArg_ParseTuple(PyObject *arg, char *format, ...);
int PyArg_ParseTuple(PyObject *arg, c
onst c
har *format, ...);
The *arg* argument must be a tuple object containing an argument list passed
from Python to a C function. The *format* argument must be a format string,
...
...
@@ -693,7 +693,7 @@ Keyword Parameters for Extension Functions
The :c:func:`PyArg_ParseTupleAndKeywords` function is declared as follows::
int PyArg_ParseTupleAndKeywords(PyObject *arg, PyObject *kwdict,
char *format, char *kwlist[], ...);
c
onst c
har *format, char *kwlist[], ...);
The *arg* and *format* parameters are identical to those of the
:c:func:`PyArg_ParseTuple` function. The *kwdict* parameter is the dictionary of
...
...
@@ -770,7 +770,7 @@ Building Arbitrary Values
This function is the counterpart to :c:func:`PyArg_ParseTuple`. It is declared
as follows::
PyObject *Py_BuildValue(char *format, ...);
PyObject *Py_BuildValue(c
onst c
har *format, ...);
It recognizes a set of format units similar to the ones recognized by
:c:func:`PyArg_ParseTuple`, but the arguments (which are input to the function,
...
...
Doc/faq/extending.rst
Dosyayı görüntüle @
cd881b85
...
...
@@ -115,8 +115,8 @@ call, a format string like that used with :c:func:`Py_BuildValue`, and the
argument values::
PyObject *
PyObject_CallMethod(PyObject *object, char *method_name,
char *arg_format, ...);
PyObject_CallMethod(PyObject *object, c
onst c
har *method_name,
c
onst c
har *arg_format, ...);
This works for any object that has methods -- whether built-in or user-defined.
You are responsible for eventually :c:func:`Py_DECREF`\ 'ing the return value.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment