Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #33262

Re: Error messages from format()

From "Colin J. Williams" <cjw@ncf.ca>
Newsgroups comp.lang.python
Subject Re: Error messages from format()
Date 2012-11-13 15:24 -0500
Organization National Capital Freenet, Ottawa, Ontario, Canada
Message-ID <k7uaak$mo4$1@theodyn.ncf.ca> (permalink)
References <k7tnqp$4r2$1@theodyn.ncf.ca> <50a293a0$0$29999$c3e8da3$5496439d@news.astraweb.com>

Show all headers | View raw


On 13/11/2012 1:38 PM, Steven D'Aprano wrote:
> On Tue, 13 Nov 2012 10:08:59 -0500, Colin J. Williams wrote:
>
>> Is there some way to get more informative error messages from the
>> builtin format?
>
> Yes -- post a feature request on the Python bug tracker, then wait until
> Python 3.4 comes out in about 16 months.
>
> :(
>
Many thanks :)

I am working on the assumption that the first argument of the format 
builtin function and be a sequence of values, which can be selected
with {1:}, {2:}, {0:} etc.

The docs don't make this clear.  I would appreciate advice.

Colin W.
> [snip]

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Error messages from format() "Colin J. Williams" <cjw@ncf.ca> - 2012-11-13 10:08 -0500
  Re: Error messages from format() Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-11-13 18:38 +0000
    Re: Error messages from format() "Colin J. Williams" <cjw@ncf.ca> - 2012-11-13 15:24 -0500
      Re: Error messages from format() Dave Angel <d@davea.name> - 2012-11-13 16:18 -0500
      Re: Error messages from format() Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-11-13 22:54 +0000

csiph-web