@@ -128,10 +128,11 @@ formatting behaviors using the same implementation as the built-in
128128 .. method :: get_field(field_name, args, kwargs, used_args)
129129
130130 Given *field_name * as returned by :meth: `parse ` (see above), convert it to
131- an object to be formatted. The default version takes strings of the form
132- defined in :pep: `3101 `, such as "0[name]" or "label.title". It records
133- which args have been used in *used_args *. *args * and *kwargs * are as
134- passed in to :meth: `vformat `.
131+ an object to be formatted. Returns a tuple (obj, used_key). The default
132+ version takes strings of the form defined in :pep: `3101 `, such as
133+ "0[name]" or "label.title". *args * and *kwargs * are as passed in to
134+ :meth: `vformat `. The return value *used_key * has the same meaning as the
135+ *key * parameter to :meth: `get_value `.
135136
136137 .. method :: get_value(key, args, kwargs)
137138
@@ -554,15 +555,8 @@ They are not available as string methods.
554555 leading and trailing whitespace.
555556
556557
557- .. XXX is obsolete with unicode.translate
558- .. function :: maketrans(from, to)
558+ .. function :: maketrans(frm, to)
559559
560- Return a translation table suitable for passing to :func: `translate `, that will
561- map each character in *from * into the character at the same position in *to *;
562- *from * and *to * must have the same length.
563-
564- .. warning ::
565-
566- Don't use strings derived from :const: `lowercase ` and :const: `uppercase ` as
567- arguments; in some locales, these don't have the same length. For case
568- conversions, always use :func: `lower ` and :func: `upper `.
560+ Return a translation table suitable for passing to :meth: `bytes.translate `,
561+ that will map each character in *from * into the character at the same
562+ position in *to *; *from * and *to * must have the same length.
0 commit comments