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

Skip to content

Conversation

@fchapoton
Copy link
Contributor

to fix many little details about list comprehension, dict, sets, etc

@verena-neufeld
Copy link
Contributor

Thanks @fchapoton for cleaning up pyscf! Out of interest, why are {} and {:} preferable over set() and dict()?

@fchapoton
Copy link
Contributor Author

well, usually shorter and convenient

@sunqm
Copy link
Collaborator

sunqm commented Oct 28, 2023

As long as python supports the set() and dict() function, changing to set comprehension and dict comprehension does not look a necessary to me.

@fchapoton
Copy link
Contributor Author

ok, so should I just close the pull request ?

@sunqm
Copy link
Collaborator

sunqm commented Oct 31, 2023

I'll merge this PR. For future PRs, unless updating the deprecated syntax, simply replacing one syntax by another is not encouraged.

@sunqm sunqm merged commit 14d8882 into pyscf:master Oct 31, 2023
@fchapoton fchapoton deleted the ruff_C40 branch October 31, 2023 16:08
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.

3 participants