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
3d234837
Kaydet (Commit)
3d234837
authored
Mar 09, 2014
tarafından
R David Murray
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
whatsnew: hmac *digestmod* accepts strings, and default is deprecated. (#17276)
üst
b1376b51
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
4 deletions
+16
-4
hmac.rst
Doc/library/hmac.rst
+2
-3
3.4.rst
Doc/whatsnew/3.4.rst
+14
-1
No files found.
Doc/library/hmac.rst
Dosyayı görüntüle @
3d234837
...
@@ -23,9 +23,8 @@ This module implements the HMAC algorithm as described by :rfc:`2104`.
...
@@ -23,9 +23,8 @@ This module implements the HMAC algorithm as described by :rfc:`2104`.
defaults to the :data:`hashlib.md5` constructor.
defaults to the :data:`hashlib.md5` constructor.
.. versionchanged:: 3.4
.. versionchanged:: 3.4
Parameter *key* can be a bytes or bytearray object. Parameter *msg* can
Parameter *key* can be a bytes or bytearray object.
be of any type supported by :mod:`hashlib`.
Parameter *msg* can be of any type supported by :mod:`hashlib`.
Paramter *digestmod* can be the name of a hash algorithm.
Paramter *digestmod* can be the name of a hash algorithm.
.. deprecated:: 3.4
.. deprecated:: 3.4
...
...
Doc/whatsnew/3.4.rst
Dosyayı görüntüle @
3d234837
...
@@ -826,6 +826,12 @@ argument to the :func:`~hmac.new` function, and the *msg* parameter to both the
...
@@ -826,6 +826,12 @@ argument to the :func:`~hmac.new` function, and the *msg* parameter to both the
accepts any type supported by the :mod:`hashlib` module. (Contributed
accepts any type supported by the :mod:`hashlib` module. (Contributed
by Jonas Borgström in :issue:`18240`.)
by Jonas Borgström in :issue:`18240`.)
The *digestmod* argument to the :func:`hmac.new` function may now be any hash
digest name recognized by :mod:`hashlib`. In addition, the current behavior in
which the value of *digestmod* defaults to ``MD5`` is deprecated: in a
future version of Python there will be no default value. (Contributed by
Christian Heimes in :issue:`17276`.)
html
html
----
----
...
@@ -1849,6 +1855,9 @@ Deprecated Python Modules, Functions and Methods
...
@@ -1849,6 +1855,9 @@ Deprecated Python Modules, Functions and Methods
* The *strict* argument of :class:`~html.parser.HTMLParser` is deprecated.
* The *strict* argument of :class:`~html.parser.HTMLParser` is deprecated.
* The :func:`hmac.new` *digestmod* keyword having a default value (currently
``MD5``) is deprecated.
Deprecated Functions and Types in the C API
Deprecated Functions and Types in the C API
-------------------------------------------
-------------------------------------------
...
@@ -2139,7 +2148,11 @@ Changes in the Python API
...
@@ -2139,7 +2148,11 @@ Changes in the Python API
currently defaults to ``False`` for backward compatibility, but will
currently defaults to ``False`` for backward compatibility, but will
eventually be changed to default to ``True``. It is recommended that you add
eventually be changed to default to ``True``. It is recommended that you add
this keyword, with the appropriate value, to any
this keyword, with the appropriate value, to any
:class:`~html.parser.HTMLParser` calls in your code.
:class:`~html.parser.HTMLParser` calls in your code (:issue:`13633`).
* Since the *digestmod* argument to the :func:`hmac.new` function will in the
future have no default, all calls to :func:`hmac.new` should be changed to
explicitly specify a *digestmod*. (:issue:`17276`).
Changes in the C API
Changes in the C API
...
...
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