Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I think I am an experienced developer (not Python) and this would never cross my mind.


It would never cross your mind not to commit .pyc files to source control? They're not even source. Committing .pyc files is to Python what committing .o files is to C.


> They're not even source.

To be clear, they’re not even text. You don’t need to know Python at all to realize something’s not right when you’re committing unknown binaries to source control.


When you review the list of changes (including added files), you notice the files that shouldn't be there; so you would see them before committing. And even if you forget, git also lists new files after calling "git commit"




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: