.pyc files...

Alex Martelli aleaxit at yahoo.com
Sun Nov 14 18:57:26 CET 2004


Reinhold Birkenfeld <reinhold-birkenfeld-nospam at wolke7.net> wrote:

> >> alias cleanpy="find . -name '*.pyc' -exec rm {} ';'"
> > or with backticks:  rm -rf `find . -name '*.pyc'`
> 
> Beware of spaces in filenames!

Yeah, but it's pretty unlikely, though not impossible, to have a .pyc
file, specifically, with spaces in the name; that module would be
somewhat hard to use from Python in normal ways.


Alex



More information about the Python-list mailing list