syntax questions

Philippe Gendreau philippe.gendreau at savoirfairelinux.com
Wed Jul 24 11:55:02 EDT 2002


Hi!
I'm fairly new to python and there a thing I don't understand in the
syntax. What is it with the "_". I have seen it used in many places for
what seems to be different puposes like:

from x import _

Also, I'd like to understand this syntax: "((_(name),))"
here's an example where it's used:

        # stuff a list
        for dir in os.listdir('/usr/share/themes'):
            row = self.theme.append ((_(dir),))
            self.theme.set_row_data (row, dir)

More precisely, what are the comma and underscore for?

Thanks
--
Philippe Gendreau




More information about the Python-list mailing list