[Python-Dev] PEP 3101: Advanced String Formatting

Terry Reedy tjreedy at udel.edu
Mon May 1 02:45:24 CEST 2006


"Talin" <talin at acm.org> wrote in message news:4453AF51.6050605 at acm.org...

>     Compound names are a sequence of simple names seperated by

separated

>     The string and unicode classes will have a class method called
>     'cformat' that does all the actual work of formatting; The
>     format() method is just a wrapper that calls cformat.
>
>     The parameters to the cformat function are:
>
>         -- The format string (or unicode; the same function handles
>            both.)

A class method gets the class as its first argument.  If the format string 
in the first argument, then it is a normal instance method.

tjr





More information about the Python-Dev mailing list