Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
2f17e98e
Commit
2f17e98e
authored
Feb 02, 2014
by
R David Murray
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
whatsnew: hmac accepts more bytes types, importlib decode_source, stat in C.
parent
919d5205
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
1 deletion
+19
-1
Doc/whatsnew/3.4.rst
Doc/whatsnew/3.4.rst
+18
-0
Misc/NEWS
Misc/NEWS
+1
-1
No files found.
Doc/whatsnew/3.4.rst
View file @
2f17e98e
...
...
@@ -732,6 +732,16 @@ New :func:`hashlib.pbkdf2_hmac` function.
(Contributed by Christian Heimes in :issue:`18582`)
hmac
----
:mod:`hmac` now accepts ``bytearray`` as well as ``bytes`` for the *key*
argument to the :func:`~hmac.new` function, and the *msg* parameter to both the
:func:`~hmac.new` function and the :meth:`~hmac.HMAC.update` method now
accepts any type supported by the :mod:`hashlib` module. (Contributed
by Jonas Borgström in :issue:`18240`.)
html
----
...
...
@@ -794,6 +804,10 @@ the :class:`.InspectLoader` ABC, which means that ``runpy`` and
``python -m`` can now be used with namespace packages. (Contributed
by Brett Cannon in :issue:`18058`.)
:mod:`importlib.util` has a new function :func:`~importlib.util.decode_source`
that decodes source from bytes using universal newline processing. This is
useful for implementing :meth:`.InspectLoader.get_source` methods.
inspect
-------
...
...
@@ -1387,6 +1401,10 @@ Other Improvements
* ``python -m`` now works with namespace packages.
* The :mod:`stat` module is now implemented in C, which means it gets the
values for its constants from the C header files, instead of having the
values hard-coded in the python module as was previously the case.
Significant Optimizations
...
...
Misc/NEWS
View file @
2f17e98e
...
...
@@ -2346,7 +2346,7 @@ Library
-
Issue
#
18339
:
Negative
ints
keys
in
unpickler
.
memo
dict
no
longer
cause
a
segfault
inside
the
_pickle
C
extension
.
-
Issue
18240
:
The
HMAC
module
is
no
longer
restricted
to
bytes
and
accepts
-
Issue
#
18240
:
The
HMAC
module
is
no
longer
restricted
to
bytes
and
accepts
any
bytes
-
like
object
,
e
.
g
.
memoryview
.
Original
patch
by
Jonas
Borgstr
ö
m
.
-
Issue
#
18224
:
Removed
pydoc
script
from
created
venv
,
as
it
causes
problems
...
...
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