grp.getgrgid()

grp.getgrgid(gid) Return the group database entry for the given numeric group ID. KeyError is raised if the entry asked for cannot be found.

grp.getgrall()

grp.getgrall() Return a list of all available group entries, in arbitrary order.

globals()

globals() Return a dictionary representing the current global symbol table. This is always the dictionary of the current module (inside a function or method, this is the module where it is defined, not the module from which it is called).

glob.iglob()

glob.iglob(pathname, recursive=False) Return an iterator which yields the same values as glob() without actually storing them all simultaneously.

glob.glob()

glob.glob(pathname, *, recursive=False) Return a possibly-empty list of path names that match pathname, which must be a string containing a path specification. pathname can be either absolute (like /usr/src/Python-1.5/Makefile) or relative (like ../../Tools/*/*.gif), and can contain shell-style wildcards. Broken symlinks are included in the results (as in the shell). If recursive is true, the pattern “**” will match any files and zero or more directories and subdirectories. If the pattern is

glob.escape()

glob.escape(pathname) Escape all special characters ('?', '*' and '['). This is useful if you want to match an arbitrary literal string that may have special characters in it. Special characters in drive/UNC sharepoints are not escaped, e.g. on Windows escape('//?/c:/Quo vadis?.txt') returns '//?/c:/Quo vadis[?].txt'. New in version 3.4.

gettext.translation()

gettext.translation(domain, localedir=None, languages=None, class_=None, fallback=False, codeset=None) Return a Translations instance based on the domain, localedir, and languages, which are first passed to find() to get a list of the associated .mo file paths. Instances with identical .mo file names are cached. The actual class instantiated is either class_ if provided, otherwise GNUTranslations. The class’s constructor must take a single file object argument. If provided, codeset will chan

gettext.textdomain()

gettext.textdomain(domain=None) Change or query the current global domain. If domain is None, then the current global domain is returned, otherwise the global domain is set to domain, which is returned.

gettext.NullTranslations._parse()

_parse(fp) No-op’d in the base class, this method takes file object fp, and reads the data from the file, initializing its message catalog. If you have an unsupported message catalog file format, you should override this method to parse your format.

gettext.NullTranslations.set_output_charset()

set_output_charset(charset) Change the “protected” _output_charset variable, which defines the encoding used to return translated messages.