Package distutils :: Module text_file
[hide private]
[frames] | no frames]

Module text_file

text_file

provides the TextFile class, which gives an interface to text files that (optionally) takes care of stripping comments, ignoring blank lines, and joining lines with backslashes.

Classes [hide private]
TextFile
Provides a file-like object that takes care of all the things you commonly want to do when processing a text file that has some line-by-line syntax: strip comments (as long as "#" is your comment character), skip blank lines, join adjacent lines by escaping the newline (ie.
Variables [hide private]
  __revision__ = '$Id: text_file.py 29687 2002-11-14 02:25:42Z a...

Imports: IntType, TypeType, BooleanType, CodeType, UnboundMethodType, StringType, BuiltinMethodType, FloatType, DictionaryType, NotImplementedType, BuiltinFunctionType, DictProxyType, GeneratorType, InstanceType, ObjectType, DictType, GetSetDescriptorType, FileType, EllipsisType, StringTypes, ListType, MethodType, TupleType, ModuleType, FrameType, LongType, BufferType, TracebackType, ClassType, MemberDescriptorType, UnicodeType, SliceType, ComplexType, LambdaType, FunctionType, XRangeType, NoneType, sys, os, string


Variables Details [hide private]

__revision__

Value:
'$Id: text_file.py 29687 2002-11-14 02:25:42Z akuchling $'