Skip to content

Provide more information about "keywords" (Python/snakemake) #38

@florence-bockting

Description

@florence-bockting

Description

The introduction episode states that rule names may not be a keyword, but does not explain which keywords are meant or how to inspect them.

It would be helpful to add a short note covering:

Python keywords can be listed with:

python -c "import keyword; print(keyword.kwlist)"

Snakemake keywords can be inspected directly from the parser source:

# Find the parser file
python -c "import snakemake.parser; print(snakemake.parser.__file__)"
# Then open the file to see the keyword definitions

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions