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
36cdca12
Kaydet (Commit)
36cdca12
authored
Ock 06, 2012
tarafından
Raymond Hettinger
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Clarify that vars() doesn't place extra restrictions on __dict__.
üst
24f207e9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
functions.rst
Doc/library/functions.rst
+9
-7
No files found.
Doc/library/functions.rst
Dosyayı görüntüle @
36cdca12
...
...
@@ -1447,15 +1447,17 @@ available. They are listed here in alphabetical order.
.. function:: vars([object])
Without an argument, act like :func:`locals`.
Return the :attr:`__dict__` attribute for a module, class, instance,
or any other object with a :attr:`__dict__` attribute.
With a module, class or class instance object as argument (or anything else that
has a :attr:`__dict__` attribute), return that attribute.
Objects such as modules and instances have an updateable :attr:`__dict__`
attribute; however, other objects may have write restrictions on their
:attr:`__dict__` attributes (for example, new-style classes use a
dictproxy to prevent direct dictionary updates).
.. note::
The returned dictionary should not be modified:
the effects on the corresponding symbol table are undefined. [#]_
Without an argument, :func:`vars` acts like :func:`locals`. Note, the
locals dictionary is only useful for reads since updates to the locals
dictionary are ignored.
.. function:: xrange([start,] stop[, step])
...
...
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