What is the difference (if any) between ".pyc" and ".py[cod]" notation in ignoring files. I am noticing I have both on my git ignore file. Thanks
You are safe to remove the .pyc
entry from your .gitignore
, since .py[cod]
will cover it. The square brackets are for matching any one of the characters, so it matches .pyc
, .pyo
and .pyd
.
Since they are all generated from the .py
source, they should not be stored in source control.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With