Skip to content

Why not directly using the existing function json.dumps in map? #25

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

Open
muhasuba opened this issue Dec 23, 2021 · 0 comments
Open

Why not directly using the existing function json.dumps in map? #25

muhasuba opened this issue Dec 23, 2021 · 0 comments

Comments

@muhasuba
Copy link

muhasuba commented Dec 23, 2021

Is there any specific reason or best practice, why use lambda instead directly using the existing function json.dumps in map

stringified_args = sorted(map(lambda data: json.dumps(data), args))

stringified_args = sorted(map(json.dumps, args)) 
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

No branches or pull requests

1 participant