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
0cfbd659
Kaydet (Commit)
0cfbd659
authored
Agu 24, 2009
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#6725: spell "namespace" consistently.
üst
87296628
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
classes.rst
Doc/tutorial/classes.rst
+3
-3
No files found.
Doc/tutorial/classes.rst
Dosyayı görüntüle @
0cfbd659
...
@@ -50,8 +50,8 @@ need for two different argument passing mechanisms as in Pascal.
...
@@ -50,8 +50,8 @@ need for two different argument passing mechanisms as in Pascal.
.. _tut-scopes:
.. _tut-scopes:
Python Scopes and Name
S
paces
Python Scopes and Name
s
paces
============================
=
============================
Before introducing classes, I first have to tell you something about Python's
Before introducing classes, I first have to tell you something about Python's
scope rules. Class definitions play some neat tricks with namespaces, and you
scope rules. Class definitions play some neat tricks with namespaces, and you
...
@@ -86,7 +86,7 @@ attributes is possible. Module attributes are writable: you can write
...
@@ -86,7 +86,7 @@ attributes is possible. Module attributes are writable: you can write
:keyword:`del` statement. For example, ``del modname.the_answer`` will remove
:keyword:`del` statement. For example, ``del modname.the_answer`` will remove
the attribute :attr:`the_answer` from the object named by ``modname``.
the attribute :attr:`the_answer` from the object named by ``modname``.
Name
spaces are created at different moments and have different lifetimes. The
Namespaces are created at different moments and have different lifetimes. The
namespace containing the built-in names is created when the Python interpreter
namespace containing the built-in names is created when the Python interpreter
starts up, and is never deleted. The global namespace for a module is created
starts up, and is never deleted. The global namespace for a module is created
when the module definition is read in; normally, module namespaces also last
when the module definition is read in; normally, module namespaces also last
...
...
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