[Python-3000] Open Issues for string.format PEP

Talin talin at acm.org
Sat Apr 22 20:33:32 CEST 2006


Here's a condensed list of the open issues that have been raised by people
so far:

(Well, edited somewhat - I'm including 'major' issues, not minor nits -- we
can discuss those once the major issues are settled.)

1) Whether to drop the optional parts of the proposal:
   -- support for field expressions (was: locals() support)
   -- support for direct access to current scope (was: locals() support)

2) Should this PEP be targeted at Python 2.6 or 3.0?

3) Role and usage of custom formatters:

   "string".fformat( formatter, ... )

vs.

   MyFormat( "string" ).format( ... )

(note: I want to make it clear that the purpose of custom formatters is to
override the formatting on a *per-field basis*, but at the same time the
custom formatter should have access to the surrounding context.)

4) Should there be a way to pass in a dict argument without flattening it via
**args?

5) Should the implementation attempt to detect unused arguments?

I'd like to get some sense of the answers before the next revision of the PEP.

-- Talin




More information about the Python-3000 mailing list