.pyc files...

Stephen Waterbury golux at comcast.net
Sun Nov 14 03:06:26 EST 2004


Eddie Parker wrote:
> OK, stupid question, but it’s been bothering me for ages.. J
> 
> I love Python to bits, but .pyc files always litter my source tree, and 
> they’ve always bothered me. ...

One solution (on unices, at least):

alias cleanpy="find . -name '*.pyc' -exec rm {} ';'"

Run after each test, or when feeling anal.  ;)

Steve



More information about the Python-list mailing list