Re: [Python-Dev] str.format_from_mapping

2010-11-03 Thread Eric Smith
On 10/31/10 4:39 PM, Eric Smith wrote: What are your thoughts on adding a str.format_from_mapping (or similar name, maybe the suggested "format_map") to 3.2? See http://bugs.python.org/issue6081 . This method would be similar to "%(foo)s %(bar)s" % d, where d is a dict (or rather any mapping obje

Re: [Python-Dev] str.format_from_mapping

2010-11-01 Thread Nick Coghlan
On Mon, Nov 1, 2010 at 10:53 AM, Barry Warsaw wrote: > On Oct 31, 2010, at 04:39 PM, Eric Smith wrote: > >>What are your thoughts on adding a str.format_from_mapping (or similar >>name, maybe the suggested "format_map") to 3.2? > > +1 for the shorter name. +1 for a format_map() method that takes

Re: [Python-Dev] str.format_from_mapping

2010-10-31 Thread Barry Warsaw
On Oct 31, 2010, at 04:39 PM, Eric Smith wrote: >What are your thoughts on adding a str.format_from_mapping (or similar >name, maybe the suggested "format_map") to 3.2? +1 for the shorter name. -Barry signature.asc Description: PGP signature ___ Pyth

Re: [Python-Dev] str.format_from_mapping

2010-10-31 Thread Benjamin Peterson
2010/10/31 Glenn Linderman : > On 10/31/2010 3:32 PM, Eric Smith wrote: > > On 10/31/2010 6:28 PM, Glenn Linderman wrote: > > On 10/31/2010 2:02 PM, Benjamin Peterson wrote: > > 2010/10/31 Antoine Pitrou: > >>  On Sun, 31 Oct 2010 16:39:44 -0400 >>  Eric Smith  wrote: >> > >>>  What are your though

Re: [Python-Dev] str.format_from_mapping

2010-10-31 Thread Glenn Linderman
On 10/31/2010 3:32 PM, Eric Smith wrote: On 10/31/2010 6:28 PM, Glenn Linderman wrote: On 10/31/2010 2:02 PM, Benjamin Peterson wrote: 2010/10/31 Antoine Pitrou: > On Sun, 31 Oct 2010 16:39:44 -0400 > Eric Smith wrote: > >> What are your thoughts on adding a str.format_from_mapping (or si

Re: [Python-Dev] str.format_from_mapping

2010-10-31 Thread Eric Smith
On 10/31/2010 6:28 PM, Glenn Linderman wrote: On 10/31/2010 2:02 PM, Benjamin Peterson wrote: 2010/10/31 Antoine Pitrou: > On Sun, 31 Oct 2010 16:39:44 -0400 > Eric Smith wrote: > >> What are your thoughts on adding a str.format_from_mapping (or similar >> name, maybe the suggested "forma

Re: [Python-Dev] str.format_from_mapping

2010-10-31 Thread Benjamin Peterson
2010/10/31 Glenn Linderman : > On 10/31/2010 2:02 PM, Benjamin Peterson wrote: > > 2010/10/31 Antoine Pitrou : > >> On Sun, 31 Oct 2010 16:39:44 -0400 >> Eric Smith wrote: >> > >>> What are your thoughts on adding a str.format_from_mapping (or similar >>> name, maybe the suggested "format_map") to

Re: [Python-Dev] str.format_from_mapping

2010-10-31 Thread Glenn Linderman
On 10/31/2010 2:02 PM, Benjamin Peterson wrote: 2010/10/31 Antoine Pitrou: > On Sun, 31 Oct 2010 16:39:44 -0400 > Eric Smith wrote: > >> What are your thoughts on adding a str.format_from_mapping (or similar >> name, maybe the suggested "format_map") to 3.2? See >> http://bugs.python.org/

Re: [Python-Dev] str.format_from_mapping

2010-10-31 Thread Antoine Pitrou
On Sun, 31 Oct 2010 16:02:08 -0500 Benjamin Peterson wrote: > 2010/10/31 Antoine Pitrou : > > On Sun, 31 Oct 2010 16:39:44 -0400 > > Eric Smith wrote: > > > >> What are your thoughts on adding a str.format_from_mapping (or similar > >> name, maybe the suggested "format_map") to 3.2? See > >> htt

Re: [Python-Dev] str.format_from_mapping

2010-10-31 Thread Benjamin Peterson
2010/10/31 Antoine Pitrou : > On Sun, 31 Oct 2010 16:39:44 -0400 > Eric Smith wrote: > >> What are your thoughts on adding a str.format_from_mapping (or similar >> name, maybe the suggested "format_map") to 3.2? See >> http://bugs.python.org/issue6081 . This method would be similar to >> "%(foo)s

Re: [Python-Dev] str.format_from_mapping

2010-10-31 Thread Antoine Pitrou
On Sun, 31 Oct 2010 16:39:44 -0400 Eric Smith wrote: > What are your thoughts on adding a str.format_from_mapping (or similar > name, maybe the suggested "format_map") to 3.2? See > http://bugs.python.org/issue6081 . This method would be similar to > "%(foo)s %(bar)s" % d, where d is a dict (o

[Python-Dev] str.format_from_mapping

2010-10-31 Thread Eric Smith
What are your thoughts on adding a str.format_from_mapping (or similar name, maybe the suggested "format_map") to 3.2? See http://bugs.python.org/issue6081 . This method would be similar to "%(foo)s %(bar)s" % d, where d is a dict (or rather any mapping object), but of course would use str.form