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
26896f28
Kaydet (Commit)
26896f28
authored
Nis 24, 2017
tarafından
csabella
Kaydeden (comit)
Mariatta
Nis 24, 2017
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
bpo-29751: Improve PyLong_FromString documentation (GH-915)
üst
85157cd8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
long.rst
Doc/c-api/long.rst
+6
-7
No files found.
Doc/c-api/long.rst
Dosyayı görüntüle @
26896f28
...
@@ -85,13 +85,12 @@ All integers are implemented as "long" integer objects of arbitrary size.
...
@@ -85,13 +85,12 @@ All integers are implemented as "long" integer objects of arbitrary size.
Return a new :c:type:`PyLongObject` based on the string value in *str*, which
Return a new :c:type:`PyLongObject` based on the string value in *str*, which
is interpreted according to the radix in *base*. If *pend* is non-*NULL*,
is interpreted according to the radix in *base*. If *pend* is non-*NULL*,
*\*pend* will point to the first character in *str* which follows the
*\*pend* will point to the first character in *str* which follows the
representation of the number. If *base* is ``0``, the radix will be
representation of the number. If *base* is ``0``, *str* is interpreted using
determined based on the leading characters of *str*: if *str* starts with
the :ref:`integers` definition; in this case, leading zeros in a
``'0x'`` or ``'0X'``, radix 16 will be used; if *str* starts with ``'0o'`` or
non-zero decimal number raises a :exc:`ValueError`. If *base* is not ``0``,
``'0O'``, radix 8 will be used; if *str* starts with ``'0b'`` or ``'0B'``,
it must be between ``2`` and ``36``, inclusive. Leading spaces and single
radix 2 will be used; otherwise radix 10 will be used. If *base* is not
underscores after a base specifier and between digits are ignored. If there
``0``, it must be between ``2`` and ``36``, inclusive. Leading spaces are
are no digits, :exc:`ValueError` will be raised.
ignored. If there are no digits, :exc:`ValueError` will be raised.
.. c:function:: PyObject* PyLong_FromUnicode(Py_UNICODE *u, Py_ssize_t length, int base)
.. c:function:: PyObject* PyLong_FromUnicode(Py_UNICODE *u, Py_ssize_t length, int base)
...
...
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