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
4dd019fd
Kaydet (Commit)
4dd019fd
authored
May 20, 2008
tarafından
Martin v. Löwis
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Patch #2488: Add sys.maxsize.
üst
b7e419eb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
0 deletions
+10
-0
sys.rst
Doc/library/sys.rst
+5
-0
NEWS
Misc/NEWS
+2
-0
sysmodule.c
Python/sysmodule.c
+3
-0
No files found.
Doc/library/sys.rst
Dosyayı görüntüle @
4dd019fd
...
...
@@ -521,6 +521,11 @@ always available.
is at least 2\*\*31-1. The largest negative integer is ``-maxint-1`` --- the
asymmetry results from the use of 2's complement binary arithmetic.
.. data:: maxsize
The largest positive integer supported by the platform's Py_ssize_t type,
and thus the maximum size lists, strings, dicts, and many other containers
can have.
.. data:: maxunicode
...
...
Misc/NEWS
Dosyayı görüntüle @
4dd019fd
...
...
@@ -12,6 +12,8 @@ What's New in Python 2.6 beta 1?
Core and Builtins
-----------------
- Patch #2488: Add sys.maxsize.
- Issue #2353: file.xreadlines() now emits a Py3k warning.
- Issue #2863: generators now have a ``gen.__name__`` attribute that
...
...
Python/sysmodule.c
Dosyayı görüntüle @
4dd019fd
...
...
@@ -992,6 +992,7 @@ PyDoc_STR(
Static objects:
\n
\
\n
\
maxint -- the largest supported integer (the smallest is -maxint-1)
\n
\
maxsize -- the largest supported length of containers.
\n
\
maxunicode -- the largest supported character
\n
\
builtin_module_names -- tuple of module names built into this interpreter
\n
\
version -- the version of this interpreter as a string
\n
\
...
...
@@ -1345,6 +1346,8 @@ _PySys_Init(void)
PyString_FromString
(
Py_GetPrefix
()));
SET_SYS_FROM_STRING
(
"exec_prefix"
,
PyString_FromString
(
Py_GetExecPrefix
()));
SET_SYS_FROM_STRING
(
"maxsize"
,
PyInt_FromSsize_t
(
PY_SSIZE_T_MAX
));
SET_SYS_FROM_STRING
(
"maxint"
,
PyInt_FromLong
(
PyInt_GetMax
()));
SET_SYS_FROM_STRING
(
"py3kwarning"
,
...
...
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