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
83250bb0
Kaydet (Commit)
83250bb0
authored
Ara 18, 2011
tarafından
Antoine Pitrou
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Merge
üst
92d4acb7
f928b5d2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
16 deletions
+28
-16
ACKS.txt
Doc/ACKS.txt
+1
-0
unicode.rst
Doc/c-api/unicode.rst
+24
-13
dictobject.c
Objects/dictobject.c
+3
-3
No files found.
Doc/ACKS.txt
Dosyayı görüntüle @
83250bb0
...
@@ -33,6 +33,7 @@ docs@python.org), and we'll be glad to correct the problem.
...
@@ -33,6 +33,7 @@ docs@python.org), and we'll be glad to correct the problem.
* Keith Briggs
* Keith Briggs
* Ian Bruntlett
* Ian Bruntlett
* Lee Busby
* Lee Busby
* Arnaud Calmettes
* Lorenzo M. Catucci
* Lorenzo M. Catucci
* Carl Cerecke
* Carl Cerecke
* Mauro Cicognini
* Mauro Cicognini
...
...
Doc/c-api/unicode.rst
Dosyayı görüntüle @
83250bb0
...
@@ -649,9 +649,11 @@ Extension modules can continue using them, as they will not be removed in Python
...
@@ -649,9 +649,11 @@ Extension modules can continue using them, as they will not be removed in Python
.. c:function:: Py_UNICODE* PyUnicode_AsUnicode(PyObject *unicode)
.. c:function:: Py_UNICODE* PyUnicode_AsUnicode(PyObject *unicode)
Return a read-only pointer to the Unicode object's internal
Return a read-only pointer to the Unicode object's internal
:c:type:`Py_UNICODE` buffer, *NULL* if *unicode* is not a Unicode object.
:c:type:`Py_UNICODE` buffer, or *NULL* on error. This will create the
This will create the :c:type:`Py_UNICODE` representation of the object if it
:c:type:`Py_UNICODE*` representation of the object if it is not yet
is not yet available.
available. Note that the resulting :c:type:`Py_UNICODE` string may contain
embedded null characters, which would cause the string to be truncated when
used in most C functions.
Please migrate to using :c:func:`PyUnicode_AsUCS4`,
Please migrate to using :c:func:`PyUnicode_AsUCS4`,
:c:func:`PyUnicode_Substring`, :c:func:`PyUnicode_ReadChar` or similar new
:c:func:`PyUnicode_Substring`, :c:func:`PyUnicode_ReadChar` or similar new
...
@@ -668,7 +670,9 @@ Extension modules can continue using them, as they will not be removed in Python
...
@@ -668,7 +670,9 @@ Extension modules can continue using them, as they will not be removed in Python
.. c:function:: Py_UNICODE* PyUnicode_AsUnicodeAndSize(PyObject *unicode, Py_ssize_t *size)
.. c:function:: Py_UNICODE* PyUnicode_AsUnicodeAndSize(PyObject *unicode, Py_ssize_t *size)
Like :c:func:`PyUnicode_AsUnicode`, but also saves the :c:func:`Py_UNICODE`
Like :c:func:`PyUnicode_AsUnicode`, but also saves the :c:func:`Py_UNICODE`
array length in *size*.
array length in *size*. Note that the resulting :c:type:`Py_UNICODE*` string
may contain embedded null characters, which would cause the string to be
truncated when used in most C functions.
.. versionadded:: 3.3
.. versionadded:: 3.3
...
@@ -677,8 +681,10 @@ Extension modules can continue using them, as they will not be removed in Python
...
@@ -677,8 +681,10 @@ Extension modules can continue using them, as they will not be removed in Python
Create a copy of a Unicode string ending with a nul character. Return *NULL*
Create a copy of a Unicode string ending with a nul character. Return *NULL*
and raise a :exc:`MemoryError` exception on memory allocation failure,
and raise a :exc:`MemoryError` exception on memory allocation failure,
otherwise return a new allocated buffer (use :c:func:`PyMem_Free` to free the
otherwise return a new allocated buffer (use :c:func:`PyMem_Free` to free
buffer).
the buffer). Note that the resulting :c:type:`Py_UNICODE*` string may
contain embedded null characters, which would cause the string to be
truncated when used in most C functions.
.. versionadded:: 3.2
.. versionadded:: 3.2
...
@@ -817,7 +823,8 @@ used, passing :c:func:`PyUnicode_FSDecoder` as the conversion function:
...
@@ -817,7 +823,8 @@ used, passing :c:func:`PyUnicode_FSDecoder` as the conversion function:
Encode a Unicode object to :c:data:`Py_FileSystemDefaultEncoding` with the
Encode a Unicode object to :c:data:`Py_FileSystemDefaultEncoding` with the
``'surrogateescape'`` error handler, or ``'strict'`` on Windows, and return
``'surrogateescape'`` error handler, or ``'strict'`` on Windows, and return
:class:`bytes`.
:class:`bytes`. Note that the resulting :class:`bytes` object may contain
null bytes.
If :c:data:`Py_FileSystemDefaultEncoding` is not set, fall back to the
If :c:data:`Py_FileSystemDefaultEncoding` is not set, fall back to the
locale encoding.
locale encoding.
...
@@ -850,10 +857,12 @@ wchar_t Support
...
@@ -850,10 +857,12 @@ wchar_t Support
Copy the Unicode object contents into the :c:type:`wchar_t` buffer *w*. At most
Copy the Unicode object contents into the :c:type:`wchar_t` buffer *w*. At most
*size* :c:type:`wchar_t` characters are copied (excluding a possibly trailing
*size* :c:type:`wchar_t` characters are copied (excluding a possibly trailing
0-termination character). Return the number of :c:type:`wchar_t` characters
0-termination character). Return the number of :c:type:`wchar_t` characters
copied or -1 in case of an error. Note that the resulting :c:type:`wchar_t`
copied or -1 in case of an error. Note that the resulting :c:type:`wchar_t
*
`
string may or may not be 0-terminated. It is the responsibility of the caller
string may or may not be 0-terminated. It is the responsibility of the caller
to make sure that the :c:type:`wchar_t` string is 0-terminated in case this is
to make sure that the :c:type:`wchar_t*` string is 0-terminated in case this is
required by the application.
required by the application. Also, note that the :c:type:`wchar_t*` string
might contain null characters, which would cause the string to be truncated
when used with most C functions.
.. c:function:: wchar_t* PyUnicode_AsWideCharString(PyObject *unicode, Py_ssize_t *size)
.. c:function:: wchar_t* PyUnicode_AsWideCharString(PyObject *unicode, Py_ssize_t *size)
...
@@ -863,9 +872,11 @@ wchar_t Support
...
@@ -863,9 +872,11 @@ wchar_t Support
of wide characters (excluding the trailing 0-termination character) into
of wide characters (excluding the trailing 0-termination character) into
*\*size*.
*\*size*.
Returns a buffer allocated by :c:func:`PyMem_Alloc` (use :c:func:`PyMem_Free`
Returns a buffer allocated by :c:func:`PyMem_Alloc` (use
to free it) on success. On error, returns *NULL*, *\*size* is undefined and
:c:func:`PyMem_Free` to free it) on success. On error, returns *NULL*,
raises a :exc:`MemoryError`.
*\*size* is undefined and raises a :exc:`MemoryError`. Note that the
resulting :c:type:`wchar_t` string might contain null characters, which
would cause the string to be truncated when used with most C functions.
.. versionadded:: 3.2
.. versionadded:: 3.2
...
...
Objects/dictobject.c
Dosyayı görüntüle @
83250bb0
...
@@ -1981,9 +1981,9 @@ PyDoc_STRVAR(popitem__doc__,
...
@@ -1981,9 +1981,9 @@ PyDoc_STRVAR(popitem__doc__,
2-tuple; but raise KeyError if D is empty."
);
2-tuple; but raise KeyError if D is empty."
);
PyDoc_STRVAR
(
update__doc__
,
PyDoc_STRVAR
(
update__doc__
,
"D.update(
E,
**F) -> None. Update D from dict/iterable E and F.
\n
"
"D.update(
[E, ]
**F) -> None. Update D from dict/iterable E and F.
\n
"
"If E has a .keys() method, does: for k in E: D[k] = E[k]
\n
\
"If E
present and
has a .keys() method, does: for k in E: D[k] = E[k]
\n
\
If E lacks .keys() method, does: for (k, v) in E: D[k] = v
\n
\
If E
present and
lacks .keys() method, does: for (k, v) in E: D[k] = v
\n
\
In either case, this is followed by: for k in F: D[k] = F[k]"
);
In either case, this is followed by: for k in F: D[k] = F[k]"
);
PyDoc_STRVAR
(
fromkeys__doc__
,
PyDoc_STRVAR
(
fromkeys__doc__
,
...
...
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