This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Use PEP 570 syntax for positional-only parameters
Type: enhancement Stage: resolved
Components: Library (Lib) Versions: Python 3.9, Python 3.8
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: pablogsal, serhiy.storchaka, vstinner
Priority: normal Keywords: patch

Created on 2019-05-31 14:47 by serhiy.storchaka, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 13700 merged serhiy.storchaka, 2019-05-31 14:48
PR 12620 merged serhiy.storchaka, 2019-05-31 14:48
Messages (6)
msg344079 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2019-05-31 14:47
Two PRs apply PEP 570 syntax to the existing code.

PR 13700 contains only compatible changes and can be applied to 3.8.
It removes existing *args or naming tricks and makes self and cls arguments positional-only (if needed).

PR 12620 contains breaking changes and can be applied only to 3.9. It converts deprecation warnings introduced in 3.8 into errors.
msg344158 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2019-06-01 08:00
New changeset 2085bd0877e17ad4d98a4586d5eabb6faecbb190 by Serhiy Storchaka in branch 'master':
bpo-37116: Use PEP 570 syntax for positional-only parameters. (GH-13700)
https://github.com/python/cpython/commit/2085bd0877e17ad4d98a4586d5eabb6faecbb190
msg344412 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2019-06-03 11:23
See also bpo-37134.
msg344413 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2019-06-03 11:27
> New changeset 2085bd0877e17ad4d98a4586d5eabb6faecbb190 by Serhiy Storchaka in branch 'master':
> bpo-37116: Use PEP 570 syntax for positional-only parameters. (GH-13700)
> https://github.com/python/cpython/commit/2085bd0877e17ad4d98a4586d5eabb6faecbb190

Oh thanks, this change is really nice! It shows that PEP 570 is really useful!
msg344734 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2019-06-05 15:22
New changeset 142566c028720934325f0b7fe28680afd046e00f by Serhiy Storchaka in branch 'master':
[3.9] bpo-37116: Use PEP 570 syntax for positional-only parameters. (GH-12620)
https://github.com/python/cpython/commit/142566c028720934325f0b7fe28680afd046e00f
msg344735 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2019-06-05 15:24
Separate issues should be open for remaining cases. For example issue37163 is open for dataclasses.replace().
History
Date User Action Args
2022-04-11 14:59:16adminsetgithub: 81297
2019-06-05 15:24:23serhiy.storchakasetstatus: open -> closed
resolution: fixed
messages: + msg344735

stage: patch review -> resolved
2019-06-05 15:22:38serhiy.storchakasetmessages: + msg344734
2019-06-03 11:27:33vstinnersetmessages: + msg344413
2019-06-03 11:23:46vstinnersetnosy: + vstinner
messages: + msg344412
2019-06-01 08:00:24serhiy.storchakasetmessages: + msg344158
2019-05-31 16:54:17xtreaksetnosy: + pablogsal
2019-05-31 14:48:50serhiy.storchakasetpull_requests: + pull_request13586
2019-05-31 14:48:31serhiy.storchakasetkeywords: + patch
stage: patch review
pull_requests: + pull_request13585
2019-05-31 14:47:41serhiy.storchakacreate