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: Guarantee that Python preserves the order of kwonly parameters
Type: enhancement Stage: resolved
Components: Interpreter Core Versions: Python 3.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: larry Nosy List: eric.smith, eric.snow, gregory.p.smith, larry, yselivanov
Priority: normal Keywords: patch

Created on 2018-01-28 17:48 by larry, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 5391 merged larry, 2018-01-28 17:56
Messages (4)
msg310975 - (view) Author: Larry Hastings (larry) * (Python committer) Date: 2018-01-28 17:48
Following on from the "Can Python guarantee the order of keyword-only parameters?", here's a patch to enforce that guarantee.  It adds documentation that makes the guarantee, and adds tests that make at least a passable attempt at testing that it's true.

I nosied everybody who +1'd my original proposal in python-dev, because I'm looking for someone to review the patch.  Beta 1 gets tagged on Sunday, so can someone rubber-stamp this today?
msg310982 - (view) Author: Larry Hastings (larry) * (Python committer) Date: 2018-01-28 19:13
New changeset f36ba12809d5db1b76464d8f1f04dad8d685ec78 by larryhastings in branch 'master':
bpo-32697: Definition order of kwonly params is now guaranteed preserved. (#5391)
https://github.com/python/cpython/commit/f36ba12809d5db1b76464d8f1f04dad8d685ec78
msg310984 - (view) Author: Larry Hastings (larry) * (Python committer) Date: 2018-01-28 19:16
Thanks for the quick turnaround reviews!  Today we've all collectively made Python a better programming language.
msg310985 - (view) Author: Yury Selivanov (yselivanov) * (Python committer) Date: 2018-01-28 19:22
> Today we've all collectively made Python a better programming language.

Literally can't stop doing that for some reason... :)
History
Date User Action Args
2022-04-11 14:58:57adminsetgithub: 76878
2018-01-28 19:22:35yselivanovsetmessages: + msg310985
2018-01-28 19:16:35larrysetstatus: open -> closed
resolution: fixed
messages: + msg310984

stage: patch review -> resolved
2018-01-28 19:13:11larrysetmessages: + msg310982
2018-01-28 18:07:05eric.smithsetnosy: + eric.smith
2018-01-28 17:56:52larrysetkeywords: + patch
pull_requests: + pull_request5226
2018-01-28 17:48:42larrycreate