Skip to content

Dunder variables as well as methods forbidden in pydash.get #180

@AndyKilpatrick

Description

@AndyKilpatrick

Got some code using pydash.get(callable, "__name__") to aid logging. pydash 6.0.0 forbids using dunder methods.

I'm not fully clear on security issue which required this change, but wondering if dunder variables (as opposed to methods) could be allowed.
Though looking at code I think this may be tricky without coding a list of allowed or disallowed options, so perhaps current method is the best - if so please reject this.

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