Re: [Tutor] Question regarding syntax

2007-07-12 Thread John Morris
On 7/11/07, Andre Roberge <[EMAIL PROTECTED]> wrote: It is a standard convention. Lots of tools are built on the assumption that translatable strings are going to be enclosed in _(...) These tools extract the strings from programs, and put them in files (.po) that are easily editable by human

Re: [Tutor] Question regarding syntax

2007-07-11 Thread Alan Gauld
"John Morris" <[EMAIL PROTECTED]> wrote > So, any really good tutorials on FP and map, filter, zip, lambda ? > I'm trying to wrap my mind around those better... You can try my FP topic in my tutor. Its not the last word but there are an excellent series of FP articles on the IBM Python 'blog'

Re: [Tutor] Question regarding syntax

2007-07-11 Thread Andre Roberge
On 7/11/07, Eric Brunson <[EMAIL PROTECTED]> wrote: > Michael Klier wrote: > > Dave Kuhlman wrote: > > > >> On Wed, Jul 11, 2007 at 11:03:18AM -0400, John Morris wrote: > >> > >>> I'm editing some code from Mailman and seeing: > >>> > >>> legend = _("%(hostname)s Mailing Lists") > >>> > >>> > > > >

Re: [Tutor] Question regarding syntax

2007-07-11 Thread Eric Brunson
Michael Klier wrote: > Dave Kuhlman wrote: > >> On Wed, Jul 11, 2007 at 11:03:18AM -0400, John Morris wrote: >> >>> I'm editing some code from Mailman and seeing: >>> >>> legend = _("%(hostname)s Mailing Lists") >>> >>> > > I am no python pro but I guess that funtction _() ist just a

Re: [Tutor] Question regarding syntax

2007-07-11 Thread Michael Klier
Dave Kuhlman wrote: > On Wed, Jul 11, 2007 at 11:03:18AM -0400, John Morris wrote: > > I'm editing some code from Mailman and seeing: > > > > legend = _("%(hostname)s Mailing Lists") > > I am no python pro but I guess that funtction _() ist just a wrapper function around gettext.gettext from the

Re: [Tutor] Question regarding syntax

2007-07-11 Thread John Morris
On 7/11/07, Dave Kuhlman <[EMAIL PROTECTED]> wrote: On Wed, Jul 11, 2007 at 11:03:18AM -0400, John Morris wrote: > I'm editing some code from Mailman and seeing: > > legend = _("%(hostname)s Mailing Lists") > The outer parentheses are a function call. The underscore is a name that has a callab

Re: [Tutor] Question regarding syntax

2007-07-11 Thread Dave Kuhlman
On Wed, Jul 11, 2007 at 11:03:18AM -0400, John Morris wrote: > I'm editing some code from Mailman and seeing: > > legend = _("%(hostname)s Mailing Lists") > The outter parenthese are a function call. The underscore is a name that has a callable as a value, I suppose. I believe that the value o

[Tutor] Question regarding syntax

2007-07-11 Thread John Morris
I'm editing some code from Mailman and seeing: legend = _("%(hostname)s Mailing Lists") Can anyone tell me what the _( means in that context? Thanks, John ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor