Python comment stripper

Dennis Reinhardt DennisR at
Wed Sep 18 11:10:17 EDT 2002

> > Why not just use .pyc files
> > all the time and be done with it?

Unstated assumption: .pyc files are often larger than corresponding .py
files.  With comments stripped, the .py file would definitely be smaller.

Otoh, .pyc files are easier to work with in some ways and where the size
contribution of libraries is not an issue, .pyc files are great in this

Dennis Reinhardt

More information about the Python-list mailing list