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
2befd247
Kaydet (Commit)
2befd247
authored
Agu 28, 2007
tarafından
Collin Winter
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Don't encourage 'from types import *' in the types module's docs.
üst
6d199ef1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
types.rst
Doc/library/types.rst
+3
-4
No files found.
Doc/library/types.rst
Dosyayı görüntüle @
2befd247
...
@@ -9,14 +9,13 @@
...
@@ -9,14 +9,13 @@
This module defines names for some object types that are used by the standard
This module defines names for some object types that are used by the standard
Python interpreter, but not for the types defined by various extension modules.
Python interpreter, but not for the types defined by various extension modules.
Also, it does not include some of the types that arise during processing such as
Also, it does not include some of the types that arise during processing such as
the ``listiterator`` type. It is safe to use ``from types import *`` --- the
the ``listiterator`` type. New names exported by future versions of this module
module does not export any names besides the ones listed here. New names
will all end in ``Type``.
exported by future versions of this module will all end in ``Type``.
Typical use is for functions that do different things depending on their
Typical use is for functions that do different things depending on their
argument types, like the following::
argument types, like the following::
from types import
*
from types import
IntType
def delete(mylist, item):
def delete(mylist, item):
if type(item) is IntType:
if type(item) is IntType:
del mylist[item]
del mylist[item]
...
...
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