Issue 37116: Use PEP 570 syntax for positional-only parameters (original) (raw)
This issue has been migrated to GitHub: https://github.com/python/cpython/issues/81297
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) * ![]() |
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) * ![]() |
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) * ![]() |
Date: 2019-06-03 11:23 |
See also bpo-37134. | ||
msg344413 - (view) | Author: STINNER Victor (vstinner) * ![]() |
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) * ![]() |
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) * ![]() |
Date: 2019-06-05 15:24 |
Separate issues should be open for remaining cases. For example is open for dataclasses.replace(). |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-11 14:59:16 | admin | set | github: 81297 |
2019-06-05 15:24:23 | serhiy.storchaka | set | status: open -> closedresolution: fixedmessages: + stage: patch review -> resolved |
2019-06-05 15:22:38 | serhiy.storchaka | set | messages: + |
2019-06-03 11:27:33 | vstinner | set | messages: + |
2019-06-03 11:23:46 | vstinner | set | nosy: + vstinnermessages: + |
2019-06-01 08:00:24 | serhiy.storchaka | set | messages: + |
2019-05-31 16:54:17 | xtreak | set | nosy: + pablogsal |
2019-05-31 14:48:50 | serhiy.storchaka | set | pull_requests: + <pull%5Frequest13586> |
2019-05-31 14:48:31 | serhiy.storchaka | set | keywords: + patchstage: patch reviewpull_requests: + <pull%5Frequest13585> |
2019-05-31 14:47:41 | serhiy.storchaka | create |