~ubuntu-branches/ubuntu/raring/python3.2/raring

« back to all changes in this revision

Viewing changes to Doc/library/string.rst

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2011-09-05 22:01:13 UTC
  • mfrom: (1.1.12 upstream)
  • Revision ID: package-import@ubuntu.com-20110905220113-gmku3knwah89ojat
Tags: 3.2.2-0ubuntu1
* Python 3.2.2 release.
* Search headers in /usr/include/ncursesw for the curses/panel extensions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
217
217
it refers to a named keyword argument.  If the numerical arg_names in a format string
218
218
are 0, 1, 2, ... in sequence, they can all be omitted (not just some)
219
219
and the numbers 0, 1, 2, ... will be automatically inserted in that order.
 
220
Because *arg_name* is not quote-delimited, it is not possible to specify arbitrary
 
221
dictionary keys (e.g., the strings ``'10'`` or ``':-]'``) within a format string.
220
222
The *arg_name* can be followed by any number of index or
221
223
attribute expressions. An expression of the form ``'.name'`` selects the named
222
224
attribute using :func:`getattr`, while an expression of the form ``'[index]'``