cpython/Objects
Eric Smith 8ec90443f5 Merged revisions 70364 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r70364 | eric.smith | 2009-03-14 07:57:26 -0400 (Sat, 14 Mar 2009) | 17 lines

  Issue 5237, Allow auto-numbered replacement fields in str.format() strings.

  For simple uses for str.format(), this makes the typing easier. Hopfully this
  will help in the adoption of str.format().

  For example:
  'The {} is {}'.format('sky', 'blue')

  You can mix and matcth auto-numbering and named replacement fields:
  'The {} is {color}'.format('sky', color='blue')

  But you can't mix and match auto-numbering and specified numbering:
  'The {0} is {}'.format('sky', 'blue')
  ValueError: cannot switch from manual field specification to automatic field numbering

  Will port to 3.1.
........
2009-03-14 12:29:34 +00:00
..
stringlib Merged revisions 70364 via svnmerge from 2009-03-14 12:29:34 +00:00
abstract.c Merged revisions 69846 via svnmerge from 2009-02-21 20:59:32 +00:00
boolobject.c Issue #1717: rename tp_compare to tp_reserved. I'll change the 2009-02-02 20:36:42 +00:00
bytearrayobject.c Merged revisions 69998-69999,70002,70022-70023,70025-70026,70061,70086,70145,70171,70183,70188,70235,70244,70275,70281 via svnmerge from 2009-03-09 21:04:33 +00:00
bytes_methods.c Renamed PyString to PyBytes 2008-05-26 13:28:38 +00:00
bytesobject.c Issue #1717: rename tp_compare to tp_reserved. I'll change the 2009-02-02 20:36:42 +00:00
cellobject.c Issue #1717: rename tp_compare to tp_reserved. I'll change the 2009-02-02 20:36:42 +00:00
classobject.c Issue #1717: rename tp_compare to tp_reserved. I'll change the 2009-02-02 20:36:42 +00:00
cobject.c Issue #1717: rename tp_compare to tp_reserved. I'll change the 2009-02-02 20:36:42 +00:00
codeobject.c Issue #1717: rename tp_compare to tp_reserved. I'll change the 2009-02-02 20:36:42 +00:00
complexobject.c Issue #1717: rename tp_compare to tp_reserved. I'll change the 2009-02-02 20:36:42 +00:00
descrobject.c Issue #1717: rename tp_compare to tp_reserved. I'll change the 2009-02-02 20:36:42 +00:00
dictnotes.txt Merged revisions 53623-53858 via svnmerge from 2007-02-23 15:07:44 +00:00
dictobject.c Give dict views a helpful __repr__. 2009-03-03 10:52:49 +00:00
enumobject.c Issue #1717: rename tp_compare to tp_reserved. I'll change the 2009-02-02 20:36:42 +00:00
exceptions.c Merged revisions 69364-69365,69409-69410,69413,69417,69435,69442,69447,69495,69519-69521 via svnmerge from 2009-02-13 02:50:59 +00:00
fileobject.c Issue #1717: rename tp_compare to tp_reserved. I'll change the 2009-02-02 20:36:42 +00:00
floatobject.c Issue #1717: rename tp_compare to tp_reserved. I'll change the 2009-02-02 20:36:42 +00:00
frameobject.c Issue #1717: rename tp_compare to tp_reserved. I'll change the 2009-02-02 20:36:42 +00:00
funcobject.c Issue #1717: rename tp_compare to tp_reserved. I'll change the 2009-02-02 20:36:42 +00:00
genobject.c Issue #1717: rename tp_compare to tp_reserved. I'll change the 2009-02-02 20:36:42 +00:00
iterobject.c Issue #1717: rename tp_compare to tp_reserved. I'll change the 2009-02-02 20:36:42 +00:00
listobject.c Issue 1242657: list(obj) can swallow KeyboardInterrupt. 2009-02-02 22:55:09 +00:00
listsort.txt Merged revisions 69846 via svnmerge from 2009-02-21 20:59:32 +00:00
longobject.c Merged revisions 69974 via svnmerge from 2009-02-25 20:33:49 +00:00
memoryobject.c remove memoryview.__str__ #5182 2009-02-08 15:00:52 +00:00
methodobject.c Issue #1717: rename tp_compare to tp_reserved. I'll change the 2009-02-02 20:36:42 +00:00
moduleobject.c Issue #1717: rename tp_compare to tp_reserved. I'll change the 2009-02-02 20:36:42 +00:00
object.c Merged revisions 69846 via svnmerge from 2009-02-21 20:59:32 +00:00
obmalloc.c Merged revisions 66616 via svnmerge from 2008-09-25 04:15:27 +00:00
rangeobject.c Issue #1717: rename tp_compare to tp_reserved. I'll change the 2009-02-02 20:36:42 +00:00
setobject.c Issue #1717: rename tp_compare to tp_reserved. I'll change the 2009-02-02 20:36:42 +00:00
sliceobject.c Issue #1717: rename tp_compare to tp_reserved. I'll change the 2009-02-02 20:36:42 +00:00
structseq.c Issue #1717: rename tp_compare to tp_reserved. I'll change the 2009-02-02 20:36:42 +00:00
tupleobject.c Issue #1717: rename tp_compare to tp_reserved. I'll change the 2009-02-02 20:36:42 +00:00
typeobject.c fix len() when __len__() returns a non number type #5137 2009-02-08 21:07:20 +00:00
unicodectype.c Merged revisions 66362 via svnmerge from 2008-09-10 14:08:48 +00:00
unicodeobject.c Merged revisions 69846 via svnmerge from 2009-02-21 20:59:32 +00:00
unicodetype_db.h Merged revisions 66362 via svnmerge from 2008-09-10 14:08:48 +00:00
weakrefobject.c Issue #1717: rename tp_compare to tp_reserved. I'll change the 2009-02-02 20:36:42 +00:00