__pycache__, one more good reason to stck with Python 2?

Terry Reedy tjreedy at udel.edu
Mon Jan 17 22:39:33 EST 2011


On 1/17/2011 8:59 PM, Flávio Lisbôa wrote:
> That's why i disagree (and hate) the automatic compilation of code, my
> project directory becomes full of object files

That is one point of stashing them all in a .__pycache__ directory.

> After reading some articles about it, I've come to think python depends
> a lot on bytecode writing on the filesystem.

A purely interpreted Python would be much slower. Saving module code to 
the filesystem speeds startup, which most find slow as it is.

> I wonder if it's good or
> bad. I find it so invasive, and that it should not be the default
> behaviour. But that's me, i'm sure most of python users don't mind at all.

Seems so. Complaints are rare.

-- 
Terry Jan Reedy





More information about the Python-list mailing list