Skip to content

Positional Arguments #2

@mottosso

Description

@mottosso

These two return the same results.

>>> ls("project/assets/{item}/{task}")
>>> ls("project/assets/{task}/{item}")

So why have keywords in there at all?

>>> ls("project/assets/{}/{}")

And if I'm only including a single key in data, wouldn't I only have to pass that key to the pattern?

>>> ls("project/assets/{}/{item}", data={"item": "value"})   

On that note, couldn't we do positional arguments?

ls("project/assets/{0}/{1}", data=["value"])  # Search first
ls("project/assets/{0}/{1}", data=[None, "value"]) Search second

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions