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
d2bef825
Kaydet (Commit)
d2bef825
authored
Ara 11, 2002
tarafından
Raymond Hettinger
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Update comments about the performance of xrange().
üst
39c7b459
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
libstdtypes.tex
Doc/lib/libstdtypes.tex
+2
-2
rangeobject.c
Objects/rangeobject.c
+2
-2
No files found.
Doc/lib/libstdtypes.tex
Dosyayı görüntüle @
d2bef825
...
...
@@ -884,8 +884,8 @@ xrange object will always take the same amount of memory, no matter the
size of the range it represents. There are no consistent performance
advantages.
XRange objects have very little behavior: they only support indexing
and the
\function
{
len()
}
function.
XRange objects have very little behavior: they only support indexing
,
iteration,
and the
\function
{
len()
}
function.
\subsubsection
{
Mutable Sequence Types
\label
{
typesseq-mutable
}}
...
...
Objects/rangeobject.c
Dosyayı görüntüle @
d2bef825
...
...
@@ -113,8 +113,8 @@ PyDoc_STRVAR(range_doc,
"xrange([start,] stop[, step]) -> xrange object
\n
\
\n
\
Like range(), but instead of returning a list, returns an object that
\n
\
generates the numbers in the range on demand.
This is slightly slower
\n
\
than range() but
more memory efficient."
);
generates the numbers in the range on demand.
For looping, this is
\n
\
slightly faster than range() and
more memory efficient."
);
static
PyObject
*
range_item
(
rangeobject
*
r
,
int
i
)
...
...
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