Python in a Nutshell by Alex Martelli The following errata were *corrected* in the 8/05 reprint: Here's the key to the markup: [page-number]: serious technical mistake {page-number}: minor technical mistake : important language/formatting problem (page-number): language change or minor formatting problem (163) Bottom; The bottom line of text was missing in printings after 9/03. the missing line was: want to print only words that are followed by whitespace (not THIS HAS BEEN CORRECTED. [221] 1st paragraph of description of the translation() function,2nd/3rd sentences: When languages is None, translation looks in the environment for the lang to use, like install. However, languages can also be a list of one or more lang names separated by colons (:), in which case translation uses the first of these names for which it finds a .mo file. NOW READS: When languages is None, translation looks in the environment for the lang to use, like install: it examines, in order, environment variables LANGUAGE, LC_ALL, LC_MESSAGES, LANG -- the first non-empty one is split on ':' to give a list of lang names (for example, 'de:en' would be split to give ['de','en']). When not None, languages must be a list of one or more lang names (for example, ['de','en']). Translation uses the first lang name in the list for which it finds an .mo file. {291} bottom; import os os.spawnv(os.p_WAIT, editor, [textfile]) NOW READS: import os os.spawnv(os.p_WAIT, editor, [editor, textfile]) and, the last sentence NOW READS: The first item of the argument args is passed to the program being spawned as "the name under which the program is being invoked". Most programs don't look at this, so you can place any string there. Just in case the editor program does look at this special first argument, passing the same string editor that is used as the second argument to os.spawnv is the simplest and most effective approach. [430] ServerProxy methods; "...supplies an attribute s.server that..." NOW READS: "...supplies an attribute s.system that..." s.server.listMethods() s.server.methodSignature(name) s.server.methodHelp(name) NOW READ: s.system.listMethods() s.system.methodSignature(name) s.system.methodHelp(name)