Skip to content

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

@muhasuba

Description

@muhasuba

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)) 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions