Lines Matching defs:string

23 import string
93 "append" appends a string to the accumulator.
178 # double up curly-braces, this string will be used
270 """Splits a version string into a tuple of integers.
283 raise ValueError('Unsupported version string: ' + repr(s))
296 raise ValueError('Illegal character ' + repr(c) + ' in version string ' + repr(s))
362 class FormatCounterFormatter(string.Formatter):
365 "replacement string" appear in the format string.
367 e.g. after evaluating "string {a}, {b}, {c}, {a}"
398 Ensures that the string found at getattr(self, attr)
399 contains exactly one formatter replacement string for
409 # this fails, the format string has a {b} in it
412 # this fails, the format string doesn't have a {c} in it
415 # this fails, the format string has two {a}s in it,
628 # turn docstring into a properly quoted C string
1176 # (they mustn't be None, but they could be an empty string.)
2503 # 'type' should be a Python string specifying the type, e.g. "int".
2504 # If this is a pointer type, the type string should end with ' *'.
2518 # "default" converted into a C value, as a string.
2522 # "default" converted into a Python value, as a string.
2534 # This value is specified as a string.
2567 # If not None, should be a string representing a pointer to a
2763 Returns a string containing this code indented at column 0.
2764 If no initialization is necessary, returns an empty string.
2771 Returns a string containing this code indented at column 0.
2772 If no initialization is necessary, returns an empty string.
2779 Return a string containing this code indented at column 0.
2780 If no operation is necessary, return an empty string.
2787 Returns a string containing this code indented at column 0.
2788 If no cleanup is necessary, returns an empty string.
2936 _PyArg_BadArgument("{{name}}", {displayname}, "a byte string of length 1", {argname});
3429 # string converter format units. Previous approaches hid
3823 # 'type' should be a Python string specifying the type, e.g. "int".
3824 # If this is a pointer type, the type string should end with ' *'.
4773 fail("Annotations must be either a name, a function call, or a string.")