Skip to content

Leave Out Compiled Code #2

Description

@ldo

Best to leave out those .pyc files from the repo. They represent compiled versions of the Python source, and change with Python version.

After deleting them from the repo, to avoid them sneaking in again, add a .gitignore file with the line

*.pyc

Newer Python puts these compiled files in a __pycache__ subdirectory, with a name that depends on the Python version, to avoid conflicts. So you could replace the above line with

/__pycache__/

or put in both lines.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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