[issue2599] allow field_name in format strings to default to next positional argument (e.g., "{}")

Bruce Frederiksen report at bugs.python.org
Tue Apr 8 21:51:05 CEST 2008


New submission from Bruce Frederiksen <dangyogi at gmail.com>:

Being forced to number the arguments when using positional arguments in
a format string is difficult to maintain.  Adding an argument to the
format string either requires renumbering all subsequent arguments, or
using an out of sequence number such that the order of the format()
arguments no longer matches the order of the "{...}" arguments.  Making
the integer optional would solve this.  Thus, "{}" would be like the old
"%s" where it was far easier to add %s arguments in the middle of the
format string.

Python 3.0a3

----------
components: Interpreter Core
messages: 65210
nosy: dangyogi
severity: normal
status: open
title: allow field_name in format strings to default to next positional argument (e.g., "{}")
type: feature request
versions: Python 3.0

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2599>
__________________________________


More information about the Python-bugs-list mailing list