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.getgrnam()

grp.getgrnam(name) Return the group database entry for the given group name. KeyError is raised if the entry asked for cannot be found.

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).

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.

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.

glob.iglob()

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

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

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

gettext.NullTranslations.lgettext()

lgettext(message) If a fallback has been set, forward lgettext() to the fallback. Otherwise, return the translated message. Overridden in derived classes.

gettext.NullTranslations.lngettext()

lngettext(singular, plural, n) If a fallback has been set, forward lngettext() to the fallback. Otherwise, return the translated message. Overridden in derived classes.