Skip to content

Allow to turn off sorting keys in Dumper (2)#254

Closed
perlpunk wants to merge 1 commit intoyaml:masterfrom
perlpunk:sortkeys
Closed

Allow to turn off sorting keys in Dumper (2)#254
perlpunk wants to merge 1 commit intoyaml:masterfrom
perlpunk:sortkeys

Conversation

@perlpunk
Copy link
Copy Markdown
Member

This is a followup to #143, based on current master (and with tests
fixed like on the release branches)

Copy link
Copy Markdown
Member

@ingydotnet ingydotnet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Let's merge this into release/5.1 branch and remove the old sort commit.

@perlpunk
Copy link
Copy Markdown
Member Author

No, the old commit in release/5.1 is ok and the same as in this PR.

I just wanted to avoid that the commit gets lost. The old PR has a problem in the tests, and I fixed it only in the release branch release/4.3, and you took my commits from release/4.3 and put them squashed into release/5.1.

To make it more transparent, I created a PR.

@ofek
Copy link
Copy Markdown

ofek commented Mar 10, 2019

Is this already in 5.1 then?

@tholom
Copy link
Copy Markdown

tholom commented Mar 10, 2019

I fixed my ordering issue simply by kludging representer.py line 111 (eleventy-one :)) to be a NOOP, i.e.
pass # mapping = sorted(mapping)

Excuse the facetious comment: it's just one line change, what could break...?

@perlpunk
Copy link
Copy Markdown
Member Author

@ofek yes, it's planned to be in 5.1

@perlpunk
Copy link
Copy Markdown
Member Author

merged in 07c88c6

@perlpunk perlpunk closed this Mar 14, 2019
@perlpunk perlpunk deleted the sortkeys branch March 18, 2019 19:10
nmlorg added a commit to nmlorg/metabot that referenced this pull request May 15, 2019
…_keys arg.

As far as I can tell, no other changes cause problems. (While I'm here, go ahead and rely on the new
default default_flow_style=False.)

Fixes #40.
takuti added a commit to takuti/prelims that referenced this pull request Jan 15, 2022
* sklearn 1.0+ requires Python 3.7+
* sklearn's minimum numpy dependency is 1.14.6
* PyYAML 5.1 introduced several backward-incompatile changes that we
  already adapted, including:
  - yaml/pyyaml#254
  - yaml/pyyaml#256
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants