Lines Matching refs:def
44 # Capitalize the words in a string, e.g. " aBc dEf " -> "Abc Def".
45 def capwords(s, sep=None):
61 def maketrans(fromstr, tostr):
91 def __init__(self, primary, secondary):
95 def __getitem__(self, key):
112 def __init__(cls, name, bases, dct):
131 def __init__(self, template):
136 def _invalid(self, mo):
148 def substitute(self, *args, **kws):
158 def convert(mo):
174 def safe_substitute(self, *args, **kws):
184 def convert(mo):
220 def lower(s):
229 def upper(s):
238 def swapcase(s):
248 def strip(s, chars=None):
260 def lstrip(s, chars=None):
270 def rstrip(s, chars=None):
281 def split(s, sep=None, maxsplit=-1):
296 def rsplit(s, sep=None, maxsplit=-1):
308 def join(words, sep = ' '):
322 def index(s, *args):
331 def rindex(s, *args):
340 def count(s, *args):
351 def find(s, *args):
364 def rfind(s, *args):
382 def atof(s):
392 def atoi(s , base=10):
407 def atol(s, base=10):
423 def ljust(s, width, *args):
434 def rjust(s, width, *args):
445 def center(s, width, *args):
458 def zfill(x, width):
471 def expandtabs(s, tabsize=8):
482 def translate(s, table, deletions=""):
500 # Capitalize a string, e.g. "aBc dEf" -> "Abc def".
501 def capitalize(s):
511 def replace(s, old, new, maxreplace=-1):
544 def format(self, format_string, *args, **kwargs):
547 def vformat(self, format_string, args, kwargs):
553 def _vformat(self, format_string, args, kwargs, used_args, recursion_depth):
587 def get_value(self, key, args, kwargs):
594 def check_unused_args(self, used_args, args, kwargs):
598 def format_field(self, value, format_spec):
602 def convert_field(self, value, conversion):
620 def parse(self, format_string):
629 def get_field(self, field_name, args, kwargs):