Lines Matching defs:string
35 import string
55 __doc__ documentation string
63 __doc__ documentation string
71 __doc__ documentation string
146 __doc__ documentation string
214 co_code string of raw compiled bytecode
231 __doc__ documentation string
269 0. The name (a string).
284 info, like a __doc__ string.
352 expline = string.expandtabs(line)
353 return len(expline) - len(string.lstrip(expline))
356 """Get the documentation string for an object.
375 lines = string.split(string.expandtabs(doc), '\n')
382 content = len(string.lstrip(line))
396 return string.join(lines, '\n')
445 if string.lower(filename[-4:]) in ('.pyc', '.pyo'):
448 if 'b' in mode and string.lower(filename[-len(suffix):]) == suffix:
599 while start < len(lines) and string.strip(lines[start]) in ('', '#'):
605 comments.append(string.expandtabs(lines[end]))
607 return string.join(comments, '')
613 if end >= 0 and string.lstrip(lines[end])[:1] == '#' and \
615 comments = [string.lstrip(string.expandtabs(lines[end]))]
618 comment = string.lstrip(string.expandtabs(lines[end]))
623 comment = string.lstrip(string.expandtabs(lines[end]))
624 while comments and string.strip(comments[0]) == '#':
626 while comments and string.strip(comments[-1]) == '#':
628 return string.join(comments, '')
699 or code object. The source code is returned as a single string. An
702 return string.join(lines, '')
835 return '(' + string.join(seq, ', ') + ')'
868 return '(' + string.join(specs, ', ') + ')'
892 return '(' + string.join(specs, ', ') + ')'