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
843bf42a
Commit
843bf42a
authored
Apr 29, 2019
by
Guido van Rossum
Committed by
Pablo Galindo
Apr 29, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add initial 'whatsnew' section for PEP 570 (GH-12942)
parent
8c77b8cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
Doc/whatsnew/3.8.rst
Doc/whatsnew/3.8.rst
+25
-0
No files found.
Doc/whatsnew/3.8.rst
View file @
843bf42a
...
...
@@ -83,6 +83,31 @@ See :pep:`572` for a full description.
.. TODO: Emily will sprint on docs at PyCon US 2019.
Positional-only parameters
--------------------------
There is new syntax (``/``) to indicate that some function parameters
must be specified positionally (i.e., cannot be used as keyword
arguments). This is the same notation as shown by ``help()`` for
functions implemented in C (produced by Larry Hastings' "Argument
Clinic" tool). Example::
def pow(x, y, z=None, /):
r = x**y
if z is not None:
r %= z
return r
Now ``pow(2, 10)`` and ``pow(2, 10, 17)`` are valid calls, but
``pow(x=2, y=10)`` and ``pow(2, 10, z=17)`` are invalid.
See :pep:`570` for a full description.
(Contributed by Pablo Galindo in :issue:`36540`.)
.. TODO: Pablo will sprint on docs at PyCon US 2019.
Parallel filesystem cache for compiled bytecode files
-----------------------------------------------------
...
...
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