Title: Theory / Important / CS / Programming / Python / Google

Question: How to do imports
Answer: Only imports module.
Context: Google Python
Answer2: Rename module if either there is an ambiguity, or if abbreviation is standard

Question: How to reference package name
Answer: Full package name
Context: Google Python

Question: When to use exception
Answer: Only for error and unexpected event
Context: Google Python

Question: When to catch Exception or StandardError
Answer: Either if it is re-raised
Context: Google Python
Answer2: creating an isolation point in the program where exceptinos are not propagated but are recorder and suppressed instead, such as protecting, a thread from crashing by guiarding its outermost block.

Question: When can global variables be used
Answer: Only if they are constants
Context: Google Python

Question: When can inner class/function be used
Answer: When the function has a very limited scope
Context: Google Python
Answer2: To close over a local value

Question: What should never be done with inner function
Answer: Hidding a function, because it can't be tested
Context: Google Python

Question: When can comprehension & generator expression be used
Answer: Only if each part (expression, if, for) is at most one line long
Context: Google Python