32

I bet you commit your .pyc files and the __pycache__ folder

Comments
  • 3
    hmm, i deploy python script in compiled form, and yes i need to commit the pyc file to prod.
  • 1
    oh i didn't know that you need pyc for prod
  • 2
    depends, we use pyc because it is closed source
  • 2
    Learnt something tday
  • 2
    @wowotek no it's really not. You can get a near line for line representation back almost instantly.
  • 3
    @deadPix3l i know it is stupid right. my ex company just does that. but it's a bit of proof committing pyc is not entirely wrong.

    personally i use cython. but this is not always running smoothly tho
  • 1
    @wowotek agreed. Cythons not perfect but it's alright. Personally I find nuitka works well.

    The only thing worse than ignoring security, is being just minimally secure and damn confident that you're good!
  • 2
  • 0
  • 1
    Only Jenkins CI builder commits pyc, then production machines checkout from his branch, same machines of course, pyc doing its function
Add Comment