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
"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'
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")
> >>>
> >>>
> >
> >
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
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
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
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
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