Python comment stripper
Dennis Reinhardt
DennisR at dair.com
Tue Sep 17 17:26:21 EDT 2002
Does anyone have a Python source comment stripper or can anyone recommend a
parser that could be adapted for same?
Why? ... well there is a better than 2:1 byte size reduction in both raw
and compressed .py files if comments are stripped. Results of analyzing
dospath.py in :
raw Kb compressed Kb
---------- --------------------
original 10.44 2.98
4 spaces -> 1 space 8.85 2.86
+ strip comments 4.65 1.34
--
Dennis Reinhardt
http://www.dair.com
More information about the Python-list
mailing list