A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2006-May/064945.html below:

[Python-Dev] PEP 3101 Update

[Python-Dev] PEP 3101 UpdateTalin talin at acm.org
Mon May 8 21:36:32 CEST 2006
Michael Chermside <mcherm <at> mcherm.com> writes:

> One small comment:
> 
> >     The conversion specifier consists of a sequence of zero or more
> >     characters, each of which can consist of any printable character
> >     except for a non-escaped '}'.
> 
> "Escaped"? How are they escaped? (with '\'?) If so, how are backslashes
> escaped (with '\\'?) And does the mechanism un-escape these for you
> before passing them to __format__?
> 
> Later...
> >     - Variable field width specifiers use a nested version of the {}
> >       syntax, allowing the width specifier to be either a positional
> >       or keyword argument:
> >
> >         "{0:{1}.{2}d}".format(a, b, c)
> 
> This violates the specification given above... it has non-escaped '}'
> characters. Make up one rule and be consistant.

What would you suggest? I'd be interested in hearing what kinds of
ideas people have for fixing these problems.

---------------------------------------------
-- Talin



More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4