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
c6243e4e
Kaydet (Commit)
c6243e4e
authored
Eki 06, 2000
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add notes on the requirements for subclasses.
This closes SourceForge bug #115928.
üst
2e06c209
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
libuserdict.tex
Doc/lib/libuserdict.tex
+19
-0
No files found.
Doc/lib/libuserdict.tex
Dosyayı görüntüle @
c6243e4e
...
@@ -64,6 +64,25 @@ A real Python list object used to store the contents of the
...
@@ -64,6 +64,25 @@ A real Python list object used to store the contents of the
\class
{
UserList
}
class.
\class
{
UserList
}
class.
\end{memberdesc}
\end{memberdesc}
\strong
{
Subclassing requirements:
}
Subclasses of
\class
{
UserList
}
are expect to offer a constructor which
can be called with either no arguments or one argument. List
operations which return a new sequence attempt to create an instance
of the actual implementation class. To do so, it assumes that the
constructor can be called with a single parameter, which is a sequence
object used as a data source.
If a derived class does not wish to comply with this requirement, all
of the special methods supported by this class will need to be
overridden; please consult the sources for information about the
methods which need to be provided in that case.
\versionchanged
[Python versions 1.5.2 and 1.6 also required that the
constructor be callable with no parameters, and offer
a mutable
\member
{
data
}
attribute. Earlier versions
of Python did not attempt to create instances of the
derived class]
{
2.0
}
\section
{
\module
{
UserString
}
---
\section
{
\module
{
UserString
}
---
Class wrapper for string objects
}
Class wrapper for string objects
}
...
...
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