Next: The opus_core Opus Package
Up: Tutorial for the urbansim
Previous: Creating a New Model
Index
Troubleshooting Python
If you are unfamiliar with Python, here are some guidelines.
- In Python,
(, {, and [ each have different
meanings. Be careful to use the correct type of ``parentheses''.
- Be careful about whether the name has a single underscore, e.g.
_one, versus two leading underscores, e.g. __two. These can
look similar in our documentation, so look carefully.
- In Python, words that have two double-underscores before and after the
word, e.g.
__init__ or __path__, generally denote ``special''
symbols.
- A command can be split over multiple lines. Normally, the Python continuation symbol `
'
at the end of each non-finished line is required. There is one exception:
expressions in parentheses, straight brackets, or curly braces do not need '
'.
- Indentation matters in Python. Code blocks (except of expressions in parentheses, straight brackets, or curly braces)
are defined by their indentation.
Next: The opus_core Opus Package
Up: Tutorial for the urbansim
Previous: Creating a New Model
Index
info (at) urbansim.org