produces a string from inFloat of width colWidth with
precision numbers of digits, if possible. If expFlag is True,
or if the requested width cannot be achieved with plain
formatting, scientific notation is used.
produces a string from inInt of width colWidth. If
expFlag is True, or if the requested width cannot be achieved
with plain formatting, scientific notation is used. inInt can be
either of types.IntType or of types.LongType (in the latter case,
the trailing L is NOT printed).
converts field values in delimited data input files:
* convert double quoted strings into single quoted strings
* escape mid-string standard string delimiters
parses lines of field values delmited by self.fieldDelimiter and maps
stringConvert on the resulting list. This is complicated, if
field delimiters are allowed to occur within strings; in this case
(safe set to 1), a second pass is made through the splitted input
line, splicing open strings together.
formats the strings passed in stringL to a table of width
self.lineWidth, with an indent of self.indent. The column width
is set to the maximum string width.
produces a string from inFloat of width colWidth with
precision numbers of digits, if possible. If expFlag is True,
or if the requested width cannot be achieved with plain
formatting, scientific notation is used.
produces a string from inInt of width colWidth. If
expFlag is True, or if the requested width cannot be achieved
with plain formatting, scientific notation is used. inInt can be
either of types.IntType or of types.LongType (in the latter case,
the trailing L is NOT printed).
converts field values in delimited data input files:
* convert double quoted strings into single quoted strings
* escape mid-string standard string delimiters
parses lines of field values delmited by self.fieldDelimiter and maps
stringConvert on the resulting list. This is complicated, if
field delimiters are allowed to occur within strings; in this case
(safe set to 1), a second pass is made through the splitted input
line, splicing open strings together.
formats the strings passed in stringL to a table of width
self.lineWidth, with an indent of self.indent. The column width
is set to the maximum string width.
automatically generates label series. Returns count unique labels
beginning with prefix, optionally starting at offset. All labels
have the same length, which is determined by the total number of labels
requested.
adjusts the length of a label list. Truncates the list of labels labelL
if it is longer or appends labels autogenerated using the prefix
autoLabelPrefix if it is shorter than targetLength. If warn is true,
a RuntimeWarning is generated if either of these two corrections is
applied.
converts an integer into an alphabetic column label or a list of
alphabetic labels.
This is more difficult than it might seem at first sight; labels
are not really a base-26 number system, as there is no zero:
the number 52, for instance, is not to be converted to
2 * 26**1 + 0 * 26 ** 0 = "CA"
but to
1 * 26**1 + 26 * 26 ** 0 = "AZ"
Parameters:
N: number to create label(s) for.
returnSequence: if True, a sequence of labels up to
the value given by N is returned
ascending: if True, the sequence of labels is returned in ascending
order (has only effect when returnSequence is set)
letters: the alphabet to select the letters from
offset : an offset for N (e.g., to return the sequence ["C","D","E"])