Thanks to visit codestin.com
Credit goes to github.com

Skip to content

bpo-29453: Remove reference to undefined dictionary ordering in Tutorial #140

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 21, 2017
Merged

bpo-29453: Remove reference to undefined dictionary ordering in Tutorial #140

merged 2 commits into from
Feb 21, 2017

Conversation

DimitrisJim
Copy link
Contributor

@DimitrisJim DimitrisJim commented Feb 16, 2017

As of Python 3.6 **kwargs are ordered, thus, remove the paragraph stating that
ordering is undefined and change snippet to remove the unnecessary sorted call.

Only issue that might need addressing as raised on the tracker is, if it is worth to mention that the output corresponds to the order of passed keyword arguments.

(Though this was already present with a patch on b.p.o I decided to turn it in a pull request since, I believe, it makes it easier to check and apply now that things are on Github)

As of Python 3.6 **kwargs are ordered, thus, remove the paragraph stating that
ordering is undefined and change snippet to remove the unecessary sorted call.
@serhiy-storchaka serhiy-storchaka added the docs Documentation in the Doc dir label Feb 18, 2017
@DimitrisJim
Copy link
Contributor Author

Added a sentence mentioning the guaranteed output order. Should I also make a PR for 3.6?

@Mariatta
Copy link
Member

Thanks @DimitrisJim
You don't have to create a separate PR for 3.6, core devs (in this case me) will do the backport :)
I'm travelling now for a conference, and will look into this after I'm back :)

@Mariatta Mariatta self-assigned this Feb 19, 2017
@Mariatta
Copy link
Member

Assigning this to myself per request by @rhettinger http://bugs.python.org/issue29453

@DimitrisJim
Copy link
Contributor Author

Thanks, @Mariatta!

@Mariatta Mariatta merged commit 32e8f9b into python:master Feb 21, 2017
Mariatta pushed a commit to Mariatta/cpython that referenced this pull request Feb 21, 2017
…ial (pythonGH-140)

As of Python 3.6 **kwargs are ordered, thus, remove the paragraph stating that
ordering is undefined and change snippet to remove the unecessary sorted call.

* Add sentence mentioning guaranteed output order of kwargs

(cherry picked from commit 32e8f9b)
Mariatta added a commit that referenced this pull request Feb 21, 2017
…ial (GH-140) (#208)

As of Python 3.6 **kwargs are ordered, thus, remove the paragraph stating that
ordering is undefined and change snippet to remove the unecessary sorted call.

* Add sentence mentioning guaranteed output order of kwargs

(cherry picked from commit 32e8f9b)
@DimitrisJim DimitrisJim deleted the control_flow_dict branch March 27, 2017 20:55
akruis pushed a commit to akruis/cpython that referenced this pull request Oct 29, 2017
- Initialize variable 'len' in function unwrap_frame_arg().
- Assign to '*valid' in function slp_find_execname().
- Disable GCC warning -Waddress in macro TASKLET_SETVAL(task, val).
- Update Stackless/changelog.txt for issues python#138, python#140
akruis pushed a commit to akruis/cpython that referenced this pull request Nov 7, 2017
- fix a warning about an unused expression result in ceval.c
- fix a warning about a non literal NULL-pointer initialization in
prickelpit.c
(cherry picked from commit 2b68ad3)
akruis pushed a commit to akruis/cpython that referenced this pull request Nov 7, 2017
- remove an unused declaration.

(cherry picked from commit e20d523)
akruis pushed a commit to akruis/cpython that referenced this pull request Nov 7, 2017
Fix warnings emitted by gcc 7.2.
- ceval.c: '*' in boolean context, suggest '&&' instead.
- stacklessmodule.c: a misleading indentation

(cherry picked from commit c51072e)
akruis pushed a commit to akruis/cpython that referenced this pull request Mar 25, 2018
- fix a warning about an unused expression result in ceval.c
- fix a warning about a non literal NULL-pointer initialization in
prickelpit.c
akruis pushed a commit to akruis/cpython that referenced this pull request Mar 25, 2018
- remove an unused declaration.
akruis pushed a commit to akruis/cpython that referenced this pull request Mar 25, 2018
Fix warnings emitted by gcc 7.2.
- ceval.c: '*' in boolean context, suggest '&&' instead.
- stacklessmodule.c: a misleading indentation
@Mariatta Mariatta removed their assignment Jun 10, 2018
akruis pushed a commit to akruis/cpython that referenced this pull request Jun 19, 2018
- Assign to '*valid' in function slp_find_execname().
- Disable GCC warning -Waddress in macro TASKLET_SETVAL(task, val).
- Update Stackless/changelog.txt for issues python#138, python#140

(cherry picked from commit 3461ccf)
akruis pushed a commit to akruis/cpython that referenced this pull request Jun 19, 2018
- remove an unused declaration.
akruis pushed a commit to akruis/cpython that referenced this pull request Jun 19, 2018
Fix warnings emitted by gcc 7.2.
- stacklessmodule.c: a misleading indentation

(cherry picked from commit c51072e)
jaraco pushed a commit that referenced this pull request Dec 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants