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
515fabbf
Kaydet (Commit)
515fabbf
authored
Ara 08, 2010
tarafından
Raymond Hettinger
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Entry for inspect.getattr_static().
üst
b1ff4024
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
3.2.rst
Doc/whatsnew/3.2.rst
+9
-8
No files found.
Doc/whatsnew/3.2.rst
Dosyayı görüntüle @
515fabbf
...
...
@@ -440,7 +440,11 @@ Some smaller changes made to the core Python language are:
dictionaries it would miss the dynamic methods and make it difficult to
implement proxy objects.
(Discovered by Yury Selivanov and fixed by Benjamin Peterson; :issue:`9666`.)
To support lookups without the possibility of activating a dynamic attribute,
the :mod:`inspect` module has a new function, :func:`getattr_static`.
(Discovered by Yury Selivanov and fixed by Benjamin Peterson; :issue:`9666`.
The inspect function added by Michael Foord.)
* The :func:`str` of a float or complex number is now the same as its
:func:`repr`. Previously, the :func:`str` form was shorter but that just
...
...
@@ -669,10 +673,8 @@ New, Improved, and Deprecated Modules
The :mod:`gzip` module also gains the :func:`~gzip.compress` and
:func:`~gzip.decompress` functions for easier in-memory compression and
decompression.
Keep in mind that text needs to be encoded in to bytes before compressing
and decompressing:
decompression. Keep in mind that text needs to be encoded in to
:class:`bytes` before compressing and decompressing:
>>> s = 'Three shall be the number thou shalt count, '
>>> s += 'and the number of the counting shall be three'
...
...
@@ -682,8 +684,8 @@ New, Improved, and Deprecated Modules
>>> c = gzip.compress(b)
>>> len(c)
77
>>> gzip.decompress(c).decode()[:4
3
] # decompress and convert to text
'Three shall be the number thou shalt count,
'
>>> gzip.decompress(c).decode()[:4
2
] # decompress and convert to text
'Three shall be the number thou shalt count,'
(Contributed by Anand B. Pillai in :issue:`3488`; and by Antoine Pitrou, Nir
Aides and Brian Curtin in :issue:`9962`, :issue:`1675951`, :issue:`7471` and
...
...
@@ -883,7 +885,6 @@ New, Improved, and Deprecated Modules
.. XXX: Create a new section for all changes relating to context managers.
.. XXX: Various ConfigParser changes
.. XXX: Mention inspect.getattr_static (Michael Foord)
.. XXX: Mention urllib.parse changes
Issue 9873 (Nick Coghlan):
- ASCII byte sequence support in URL parsing
...
...
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